Tagged: x
-
AuthorPosts
-
December 18, 2016 at 12:29 pm #1297300
colecoboy85ParticipantHello,
I was able to add a gorgeous full-width Soliloquy slider (see attached screenshot) to my site by adding this to my wp-header-php and uploading it to the appropriate view (Integrity) in my child theme:
<?php echo do_shortcode(‘[soliloquy slug=”x”]’); ?>
The problem, of course, is that the slider is appearing everywhere on the site. And if I add the conditional if ( is_home() ) to the code snippet above, the slider disappears.
I also tried adding the snippet above as well as the one below to wp-index.php and uploading it to the child theme, but nothing happened:
<?php echo do_shortcode(‘[soliloquy slug=”281″]’); ?>
Pretty please, help me understand what I’m doing wrong 🙂
December 18, 2016 at 12:33 pm #1297303
colecoboy85ParticipantThis site is hidden behind a “Coming Soon” page – please let me know if you need to look at it and I’ll send you the credentials. Thanks!
December 18, 2016 at 1:14 pm #1297317
NicoModeratorHi There,
Thanks for writing in.
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
December 18, 2016 at 10:24 pm #1297700
colecoboy85ParticipantThis reply has been marked as private.December 18, 2016 at 11:12 pm #1297732
Rue NelModeratorHello There,
Thanks for providing the information.
1] To display your slider just for the homepage, please have this condition instead:
<?php if ( is_page('75') ) : ?> <?php echo do_shortcode('[soliloquy slug="x"]'); ?> <?php endif; ?>where ’75’ is the page ID of your homepage. To know more how you can get the page ID, please check this out: https://community.theme.co/kb/how-to-locate-post-ids/
December 19, 2016 at 5:15 pm #1298744
colecoboy85ParticipantThat worked wonderfully, thank you!
December 19, 2016 at 9:50 pm #1298978
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1297300 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
