GS Logo Slider’s Shortcode Usage
Note: From Version 3.0.0 shortcode generator was added with preview.
Select theme & other parameters. Shortcode will generate with id like [gslogo id=1]
[gslogo id=1]
[gs_logo theme="slider1"] (Old Style)
GS Logo Slider’s Shortcode attributes Usage
Note: From Version 3.0.0 shortcode generator added with preview.
NO NEED to add attributes. After selecting options, Shortcode will generate with id like [gslogo id=#]
[gslogo id=1]
[gs_logo title="yes" posts="15" order="ASC" logo_cat="food" mode="vertical" speed="1000" inf_loop="0" ticker="1" logo_color="gray_to_def"] (Old Style)
Shortcode PHP Usage
Template Usage – Add the Shortcode anywhere you need to display GS Behance Portfolio in template files (header.php, front-page.php, etc.)
<?php echo do_shortcode( '[gslogo id=1]' ); ?>
Note: Before Version 2.1.01, Shortcode attributes need to be added & kept for old users.
From Version 2.1.01, NO NEED to add attributes & we will delete the below table later.
No. | Attribute | Default value | options | Description |
---|---|---|---|---|
1 | title | no | no / yes | Display Logo including / excluding Title. Default OFF |
2 | posts | -1 | -1 for all or any number | By default it’ll show all the Logos but you can control it by posts attribute. |
3 | order | DESC | DESC / ASC | Normally Logos will show by descending order, latest will show first. But if you wish to display ascending order, oldest at first then pass order="ASC" parameter |
4 | orderby | date | ID / title / modified / rand / menu_order (Drag & drop custom order) | Use preffered orderby attribute |
5 | logo_cat | all | Logo category slug, comma separated. | To get your category slug, go to GS Logos -> Logo Category. Here you will find Logo category & all the slugs |
6 | mode | horizontal | horizontal / vertical | Select Direction mode to slide Logos. Default horizontal |
7 | speed | 500 | Any number | You can increase / decrease sliding speed. Set the speed in millisecond. Default 500. To disable autoplay just set the speed 0 |
8 | inf_loop | 1 | 0 / 1 | If ON, clicking “Next” while on the last slide will transition to the first slide and vice-versa. Default On (1) |
9 | ticker | 0 | 0 / 1 | Slide Logos in ticker mode (similar to a news ticker). Default Off( 0 ). In order to make the ticker appear slower, the Speed value must be raised. [gs_logo speed="20000" ticker="1" inf_loop="0"]
|
10 | logo_color | Default | gray / gray_to_def / def_to_gray | Logo grayscale feature works only in modern browsers like Chrome, Firefox and Safari |
11 | theme | slider1 |
slider1 ticker1 grid1 grid2 grid3 list1 list2 list3 table1 table2 table3 vslider1 filter1 filter2 filter3 filter-select filterlive1 filterlive2 filterlive3 slider_fullwidth center vwidth verticalcenter verticalticker verticaltickerdown 2rows |
Select preferred theme from 25 ready views |
12 | tooltip | None | tooltip | Show / Hide Tooltip. Default : Off |
13 | max_logo | 5 | Any number | Maximum number of Logos to display |