Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1297300
    colecoboy85
    Participant

    Hello,

    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 🙂

    #1297303
    colecoboy85
    Participant

    This 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!

    #1297317
    Nico
    Moderator

    Hi 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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1297700
    colecoboy85
    Participant
    This reply has been marked as private.
    #1297732
    Rue Nel
    Moderator

    Hello 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/

    #1298744
    colecoboy85
    Participant

    That worked wonderfully, thank you!

    #1298978
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1297300 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>