Forum Replies Created
-
AuthorPosts
-
themehorse3Participant
The CSS in the example is the default, of cause you have to make some changes in the css values to position the elements.
If you place it in the theme options custom css field, it should over-right the default css.Greets,
Dennisthemehorse3ParticipantThank you for your recommendation to use a child theme. I’ve been trying to make one, but have a question:
How can you overwrite a parent theme function with a child function?
I want to overwrite
require_once( ATTITUDE_STRUCTURE_DIR . '/header-extensions.php' );
in the parent function attitude_load_files withrequire_once ( get_stylesheet_directory() . '/library/structure/header-extensions.php' );
Regards,
Dennisthemehorse3ParticipantGot it: it needed some javascript. Changed
if( ( is_home() || is_front_page() ) && "0" == $options[ 'disable_slider' ] ) { wp_enqueue_script( 'attitude_slider', ATTITUDE_JS_URL . '/attitude-slider-setting.js', array( 'jquery_cycle' ), false, true ); }
in functions.php on line 48-50
to
//if( ( is_home() || is_front_page() ) && "0" == $options[ 'disable_slider' ] ) { wp_enqueue_script( 'attitude_slider', ATTITUDE_JS_URL . '/attitude-slider-setting.js', array( 'jquery_cycle' ), false, true ); //}
Kind regards,
Dennisthemehorse3ParticipantI have added
echo '<!-- not home and show slider -->'; if( function_exists( 'attitude_pass_cycle_parameters' ) ) attitude_pass_cycle_parameters(); if( function_exists( 'attitude_featured_post_slider' ) ) attitude_featured_post_slider();
to header-extensions.php after
else {
on line 281 beforeif( ( '' != attitude_header_title() ) || function_exists( 'bcn_display_list' ) ) {
on line 282.Now it shows but the slider nav is not showing and slider stopped rotating.
Does anyone please have any tips? I would really love to have a slider on all pages.
Kind regards,
Dennisthemehorse3ParticipantNot sure what headlines you mean but you can add the styles for the headings to your custom css:
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
font-family: “Philosopher”,sans-serif;
color: #555;
}themehorse3ParticipantHi to move the whole block edit the class “featured-text”:
.featured-text {
position: absolute;
bottom: 55px;
right: 30px;
text-align: right;
color: #FFF;
}To move the title edit “featured-title”, to move content edit “featured-content”.
.featured-title {
font: 24px/30px “Philosopher”,sans-serif;
padding: 10px 20px;
background: none repeat scroll 0% 0% rgba(5, 169, 197, 0.9);
float: right;
max-width: 525px;
}featured-content {
padding: 20px;
background: none repeat scroll 0% 0% rgba(85, 85, 85, 0.9);
margin-top: 4px;
float: right;
clear: right;
max-width: 355px;
} -
AuthorPosts