Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1167062
    damienschaefer
    Participant

    Hi,
    I am following the instructions supplied in this thread https://community.theme.co/forums/topic/slider-in-category-archive/ to try to add my “elk-head” revolution slider to my category pages and it just does not seem to work. Will you take a look at http://grinningelk.scenicfigure.com/category/electrics/ and see what the problem may be? Here is the code I have included in my child theme’s wp-header.php.

    <?php

    // =============================================================================
    // VIEWS/INTEGRITY/WP-HEADER.PHP
    // —————————————————————————–
    // Header output for Integrity.
    // =============================================================================

    ?>

    <?php x_get_view( ‘global’, ‘_header’ ); ?>

    <?php x_get_view( ‘global’, ‘_slider-above’ ); ?>
    <?php
    if (is_category()):
    echo do_shortcode(‘[rev_slider alias=”elk-head”]’);
    endif;
    ?>

    <header class=”<?php x_masthead_class(); ?>” role=”banner”>
    <?php x_get_view( ‘global’, ‘_topbar’ ); ?>
    <?php x_get_view( ‘global’, ‘_navbar’ ); ?>
    <?php x_get_view( ‘integrity’, ‘_breadcrumbs’ ); ?>
    </header>

    <?php x_get_view( ‘global’, ‘_slider-below’ ); ?>
    <?php x_get_view( ‘integrity’, ‘_landmark-header’ ); ?>

    FYI: WordPress 4.6.1, X Version: 4.6.2, Cornerstone Version 1.3.2
    Thanks!
    D

    #1167553
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Your code seems to work, but it seems the issue is on your slider. Or was it your slider is empty at the moment?


    screenshot

    Please clarify, If you would not mind please provide us login credentials in private reply so we can take a closer look.

    Cheers!

    #1168021
    damienschaefer
    Participant
    This reply has been marked as private.
    #1168026
    damienschaefer
    Participant
    This reply has been marked as private.
    #1168551
    Friech
    Moderator

    Hi There,

    Like I said your code is fine, slider shows up fine now.

    http://prnt.sc/cg6de9

    Did you resolve the issue? Is that just a static image? If so, I advice to add that banner as an image

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Header output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <?php x_get_view( 'global', '_slider-above' ); ?>
    <?php
    if (is_category()): ?>
     <img class="header-banner" src="http://grinningelk.scenicfigure.com/wp-content/uploads/2016/09/grinning-elk-header2.jpg" alt="grinning elk" style="width:100%;" />
    <?php endif;
    ?>
      <header class="<?php x_masthead_class(); ?>" role="banner">
        <?php x_get_view( 'global', '_topbar' ); ?>
        <?php x_get_view( 'global', '_navbar' ); ?>
        <?php x_get_view( 'integrity', '_breadcrumbs' ); ?>
      </header>
    
      <?php x_get_view( 'global', '_slider-below' ); ?>
      <?php x_get_view( 'integrity', '_landmark-header' ); ?>

    It’ll improve the site performance.

    Thanks.

    #1169283
    damienschaefer
    Participant

    It is working! Thanks again!
    Damien

    #1169718
    Rue Nel
    Moderator

    You’re welcome!
    We’re glad we were able to help you out.

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