Tagged: display slider
- This topic has 5 replies, 2 voices, and was last updated 9 years, 9 months ago by Theme Horse Support Team.
-
AuthorPosts
-
March 2, 2015 at 6:25 pm #22661TerenceParticipant
Hello
I am trying to set up the theme to show a different revolution slider on each page.
How do I do this properly?
When I go to the edit page, I have a drop down menu that enables me to choose which slider I want however, when I do this, the slider does not display correctly and only shows part way across the page.
regards
Terence Sweeney
March 3, 2015 at 7:49 am #22680Theme Horse Support TeamKeymasterHi Terry Sweeney,
We have only zipped packed the revolution slider. Nut we cannot provide support regarding to revolution slider.
For more info visit this link
http://themepunch.com/codecanyon/revolution_wp/documentation/http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380
Thank you!
March 3, 2015 at 7:13 pm #22703TerenceParticipantThanks however the issue I am having is with the theme, not the slider.
Here is a link to the main page
The plugin however allows for the creation of multiple sliders and to place a different slider on each page. I have no problem creating the different sliders in the plugin, or having them display.
The problem is when I add a different slider to each page they don’t go across the full page.
Here is the problem page.
http://terencesweeney.com/consulting/
How do I have this work so that the theme allows each slider to go across the full page?
regards
Terence Sweeney
March 4, 2015 at 5:44 am #22718Theme Horse Support TeamKeymasterHi Terry,
Yes exactly when you create a slider in home page. The slider is inside the home page. If you slider in inner page then the slider is inside the content. So You slider is full width inside home page and not in the inner page. We have designed our theme this way. If you want your slider full width for inner page then it needs code customization. So you need to hire a developer to fix it.
Thank you!
March 6, 2015 at 10:34 pm #22834TerenceParticipantHi Again
Thanks for the response. I have a developer looking at it however he is having issues.
“I’m sorry but I have spent the last hour looking at your theme files – the location of the hooks is completely oblivious to me. Your template pages reference hooks rather than code. I have looked through about 30 files and cannot find a single hook reference for page sliders. ”
Can you provide a pointer.
regards
Terence Sweeney
March 9, 2015 at 6:09 am #22894Theme Horse Support TeamKeymasterHi Terry,
The there is a hook in the header file.
do_action( 'attitude_header' );
This code is in header.php, The core file for this header is inside theme folder (attitude)-> library-> structure-> header-extension.php, all the section of header is derived from header-extension.php from line no 239, you can find this below codeif( 'revolution-slider' == $options[ 'slider_type' ] ) { if( !empty( $options[ 'header_slider' ] ) && function_exists( 'putRevSlider' ) ) { if( '1' == $options[ 'revslider_homepage' ] && ( is_home() || is_front_page() ) ) { putRevSlider( $options[ 'header_slider' ], "homepage" ); $attitude_show_breadcrumb = 'false'; } $attitude_rev_page_array = explode( ',', $options[ 'pages_id_revslider' ] ); if ( !empty( $options[ 'pages_id_revslider' ] ) && is_page( $attitude_rev_page_array ) ) { putRevSlider( $options[ 'header_slider' ], $options[ 'pages_id_revslider' ] ); $attitude_show_breadcrumb = 'false'; } } }
From here you can make a code customization for each page.
How to unhook the functions? Here is a simple example to display page 404.php
unhook functions // Unhook default Thematic functions function unhook_thematic_functions() { // Don't forget the position number if the original function has one remove_action( 'attitude_404_content', 'attitude_display_404_page_content', 10 ); } add_action('init','unhook_thematic_functions'); // removes the header content by using hook attitude_header add_action( 'attitude_404_content', 'attitude_child_display_404_page_content', 10 ); /** * function to show the footer info, copyright information */ function attitude_child_display_404_page_content() { ?> <div id="content"> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'Error 404-Page NOT Found', 'attitude' ); ?></h1> </header> <div class="entry-content clearfix" > <p>Thank you</p> </div><!-- .entry-content --> </div><!-- #content --> <?php }
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.