- Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236
bigpacific
MemberWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hi. I want to have a slider show on my site at http://youngentrepreneurssymposium.ca/ and I want it directly below the navigation and above the split into columns. I’ve read the help files and tutorials and tried using the insert function in the page theme php with no success. I want the slider responsive width and only on the home page, which is a static front page pulling the page called ‘welcome’.
All help appreciated!
Laurie
AdvertismentDeprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bigpacific
MemberWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Figured it out on my own.
Open Appearance > Editor
Choose the page template you want to use for the front page. Copy all the code.
Open a new PHP document and paste in the content. Name the page template-home.php. Make sure this code is just below the call for the header:
<?php if(pinboard_get_option(‘slider’)): ?>
<?php get_template_part(‘slider’); ?>
<?php endif; ?>Upload by FTP to the folder that holds all of the other templates (theme folder).
Test to ensure slider is on home page.
Go back to Appearance > Editor > template page you started off with. Make sure the same code is NOT on it:
<?php if(pinboard_get_option(‘slider’)): ?>
<?php get_template_part(‘slider’); ?>
<?php endif; ?>Save and test.
STICKINESS
The Vslider uses the post public with the sticky box beneath it checked; you’ll have to click ‘edit’ next to published to see it. It will pull the image from the ‘featured image’ field, and the title from the title of the image. I could not find a way to suppress titles so they don’t show.
If you mark other posts as ‘sticky’ but they don’t have an image, the box collapses and gets mixed into the nav bar, so make sure ONLY posts with featured images are marked sticky.
Tagged: page templates, slider front page
You must be logged in to reply to this topic.