Forum Replies Created
-
AuthorPosts
-
LoudnessMember
Hi Brad
thanks for all your help. The slider is on all the page, except the home page... ( I want the opposite) here's the code I'm using :
function soliloquy_slider_header_home() {
if (is_front_page() ) {
echo do_shortcode('[soliloquy id="4402"]');
}
};
/**
* @author Brad Dalton - WP Sites
*
* @example http://wp.me/p1lTu0-9Th
*/
add_action('genesis_header', 'soliloquy_slider_header_home');/** Add soliloquy after header Genesis */
function wpsitesdotnet_soliloquy_slider_header() {if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( '4402' );
};
/**
* @author Brad Dalton - WP Sites
*
* @tutorial http://wp.me/p1lTu0-9Th
*/
add_action('genesis_after_header', 'wpsitesdotnet_soliloquy_slider_header');/** Change header height */
add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 180 ) );Resumé : ! want the soliloquy slider on the home page only, after the header, & slider height must be 180px. What is wrong in the code ?
LoudnessMemberHi
for any reasons, this code add the slider on all the pages ? Any idea why ?
LoudnessMembercorrection : I want the slider between the menu & main content section.
LoudnessMemberOk, but what if Studiopress update their educational theme in 1 year ? I wont be able to update my custom theme with the tweaked css of the last update without loosing all my customization ? What is the best way to proceed ? Is it possible to create just a "child" CSS file that override the "educational" theme style sheet ? So in order :
Genesis framework CSS is read
Then the educational theme CSS is read
Then my custom CSS file is read (in a separate CSS file ?) Or I just put all my modification at the end of the child theme css file ?
-
AuthorPosts