WordPress.org

Ready to get started?Download WordPress

Forums

Coraline Scrolling Header? (8 posts)

  1. Beas2013
    Member
    Posted 1 year ago #

    Greetings,
    I am working on my first website and I know absolutely nothing about php or CSS (this is the reason I’ve chosen WordPress – because I thought there’s no need to know those things).
    I’m using the Coraline theme (v 1.4.1) and WP version 3.5.1
    I’d like to have either a PowerPoint style header image or a sliding header to display different pictures of the same size.
    I’ve installed multiple plugins (Cimy Header Image Rotator, Header Image Slider, Content slider, Nivo Jquery, etc.), followed all the steps, modified countless .php codes, and none of them have worked with my theme. I do not want to change theme (as this is for someone else who loves the theme).
    I’d like to have the page links in the same location (above the images, but have the images on the home page change. Would anyone happen to know a code or another method to get any header image slider to work? I need help in simple, laymen steps ☺
    Thank you so much for your time and knowledge.
    Website: http://www.civicdance.com

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    Make a child theme ( for Coraline theme as parent )
    http://codex.wordpress.org/Child_Themes

    1. Reinstall the original unedited Coraline theme.
    2. Install your child theme, activate and make sure it works.
    3. Copy over header.php from Coraline theme, put into your child.
    4. Delete everything inside <div id="branding"> and its closing </div>
    5. Put the template tag (code) from the slider plugin in there.
  3. Beas2013
    Member
    Posted 1 year ago #

    Thank you for your help.
    I've followed the steps to create a child theme, but I receive a message that states, "The parent theme is missing."

    What is the parent theme and where do I insert it.

    Thanks

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The parent theme is the regular Coraline theme - sounds like you need to reread the link about and make sure you followed the instructions correctly. Your child theme style.css file should not be a copy of the entire style.css file.

  5. Beas2013
    Member
    Posted 1 year ago #

    Okay, now we're getting somewhere :) Thanks.
    I've followed the directions and after the child theme was created, the site still functions perfectly.

    I'm using Cimy Header Image Rotator, and after inserting the code, no images appear at all. Its a white space where the images once were.

    Thanks for your patience with me.

  6. paulwpxp
    Font hero
    Posted 1 year ago #

    So now that we have something like this in header.php of your childtheme.

    <div id="branding">
    	<?php some_slider_plugin(); ?>
    </div>

    It's just a matter of configuring plugin settings and upload images. Read the plugin's documentaion.

  7. Beas2013
    Member
    Posted 1 year ago #

    This is what my child theme header.php file looks like from <div id="branding">...

    <div id="branding">
    			<?php
    				// Check to see if the header image has been removed
    				if ( '' != get_header_image() ) :
    			?>
    			<a>">
    <?php
    					// The header image
    					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    					if ( is_singular() && has_post_thumbnail() && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'post-thumbnail' ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) :
    						// Houston, we have a new header image!
    						the_post_thumbnail();
    					else : ?>
    
    					<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
    				<?php endif; // end check for featured image or standard header ?>
    			</a>
    
    <?php endif; // end check for removed header image ?>
    		</div>
    <!-- #branding -->
    </div><!-- #header -->
    
    <div id="content-box">
  8. Beas2013
    Member
    Posted 1 year ago #

    So excited! I spent some time pasting the code in different locations and deleting some code that was in the header.php file.
    It works beautifully now.

    Thank you for all your help and guidance. You guys are awesome.

Topic Closed

This topic has been closed to new replies.

About this Topic