Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1067819
    websperations
    Participant

    How can I assign a slider above masthead on blog entries.

    It shows fine on my blog page but when you click into a blog entry it doesn’t show and I need it to.

    Working example of what I need…
    http://www.dynatekindustries.com/news/

    Blog entry where I need to add the slider…
    http://www.dynatekindustries.com/2015/01/14/dynatek-is-extending-its-price-freeze-program-for-2015-helping-businesses-across-america-save-money/

    Thanks,

    Micah

    #1067820
    websperations
    Participant
    This reply has been marked as private.
    #1067831
    websperations
    Participant

    I replicated wp-single.php to my Child Theme.

    I am able to put text into the location I want the slider. I pulled the slider embedding code and added it to the wp-single.php

    <?php putRevSlider('header-logo-slider'); ?>

    I put it into wp-single.php like below however it’s not showing.

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-SINGLE.PHP
    // -----------------------------------------------------------------------------
    // Single post output for Integrity.
    // =============================================================================
    
    $fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );
    
    ?>
    
    <?php putRevSlider('header-logo-slider'); ?>
    
    <?php get_header(); ?>

    How can I get this to work?

    Thanks,

    Micah

    #1067976
    Rue Nel
    Moderator

    Hello Micah,

    You have edited the wrong file. Please remove that file from your child theme. And then please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?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_single() ) : ?>
    
      	<?php putRevSlider('header-logo-slider'); ?>
    
      <?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' ); ?>

    Hope this helps.

    #1073855
    websperations
    Participant

    Thanks, that did the trick.

    Micah

    #1074156
    Prasant Rai
    Moderator

    You are most welcome. 🙂

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