Tagged: x
-
AuthorPosts
-
June 30, 2016 at 9:37 pm #1067819
websperationsParticipantHow 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
June 30, 2016 at 9:38 pm #1067820
websperationsParticipantThis reply has been marked as private.June 30, 2016 at 9:51 pm #1067831
websperationsParticipantI 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
July 1, 2016 at 12:29 am #1067976
Rue NelModeratorHello 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.
July 5, 2016 at 6:53 pm #1073855
websperationsParticipantThanks, that did the trick.
Micah
July 5, 2016 at 11:31 pm #1074156
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1067819 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
