- This topic has 17 replies, 6 voices, and was last updated 7 years, 11 months ago by
Leo.
-
AuthorPosts
-
November 23, 2015 at 12:04 am #154883
Vasy
Where to include a slider?
November 23, 2015 at 12:11 am #154884Tom
Lead DeveloperLead DeveloperIf you have GP Hooks you can place it anywhere.
Most people place a full width slider in the “After Header” hook.
November 23, 2015 at 12:31 am #154893Vasy
It is possible that for more please?
November 23, 2015 at 3:40 am #154917Vasy
I do not understand how to do it.
Any examples?November 23, 2015 at 8:53 am #154988Tom
Lead DeveloperLead DeveloperHi there,
First you’ll need a slider plugin of some sort – there’s tons of them out there if you do a quick search.
All slider plugins will generate a shortcode when you create a slider.
This shortcode is what you can place in GP Hooks to show the slider site-wide, or our Page Header to show it on a specific page.
You can check out our videos on the Page Header add-on to see us using an example slider: https://generatepress.com/knowledgebase/generate-page-header/
Let me know if you need more info 🙂
November 25, 2015 at 2:17 am #155610Vasy
Thank you!
November 25, 2015 at 3:07 am #155623Vasy
How to make the text on the slider was in a separate background?
November 25, 2015 at 10:33 am #155692Tom
Lead DeveloperLead DeveloperI’m not too sure what you mean? You may need a layer slider if you want text on top of your images.
December 5, 2015 at 8:32 am #158195watc
Inserting a slider ( I am using Smart Slider) “After Header” hook is perfect position, but only downside, it stays there forever. I want my slider only on homepage (static). For example, when someone clicks on “About Us” page, slider on top of About Us description is distracting.
Is there anyway to make hooks visible on certain pages only?
December 5, 2015 at 9:35 am #158208Tom
Lead DeveloperLead DeveloperThere is, but it’s easier to use our Page Header add-on if you have it.
That way you can add your slider into the “Content” tab and it will display only on that page.
Let me know if you’d like the code for the hooks instead 🙂
January 23, 2016 at 12:03 pm #167550Jasper
I would like the code since I can’t get the slider in the content tab of the pageheader to show full width.
January 23, 2016 at 5:04 pm #167593Tom
Lead DeveloperLead DeveloperYou can use if conditions to apply them to specific pages: https://codex.wordpress.org/Conditional_Tags
For example:
<?php if ( is_page( 'my-page-slug' ) ) : ?> Content in here will only show up on mywebsite.com/my-page-slug <?php endif; ?>For multiples:
<?php if ( is_page( array( 'slug-1','slug-2','slug-3' ) ) ) : ?> This content will show on mywebsite.com/slug-1 and so on.. <?php endif; ?>Then be sure to check the “Execute PHP” checkbox.
January 24, 2016 at 12:17 am #167647Jasper
Thanks, i like the theme better everyday.
No way i will use the 30-day moneyback option ! I did recommended it to some friends already.January 24, 2016 at 10:01 am #167727Tom
Lead DeveloperLead DeveloperThank you! Glad you’re enjoying it 🙂
April 17, 2018 at 3:44 am #552540Steve
Searched and searched for a solution but can’t find one i’m afraid. I am using smart slider on a page header and want to put a logo over the top of the slider but within the page header.
Not sure how to do it ?
Website danemeadcampsite.org.uk
-
AuthorPosts
- You must be logged in to reply to this topic.