stevedw
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Display only posts from 1 category on main pageI put that code in but it still displays posts from all the catagories instead of only Latest Offers.
Do i need to remove any of the existing code which is in index.php
Forum: Themes and Templates
In reply to: Display only posts from 1 category on main pageThanks for the link. Im stuck though.
I put this code in the index.php file to only show posts from the category Latest Offers but it stills shows posts from all categories. Any idea what the problem is?
<?php //The Query query_posts( array ( 'latest_offers' => 'Latest Offers', 'posts_per_page' => -1 ) ); //The Loop if ( have_posts() ) : while ( have_posts() ) : the_post(); endwhile; else: endif; //Reset Query wp_reset_query(); ?>Forum: Themes and Templates
In reply to: Changing background colour in TwentyTen ThemeOk, thanks. All done.
Forum: Themes and Templates
In reply to: Changing background colour in TwentyTen ThemeI thought of that but wouldn’t it lose those settings when i upgrade WordPress? Which is why i was thinking it would be better to change it in the Child theme’s CSS instead.
Forum: Themes and Templates
In reply to: Changing background colour in TwentyTen Theme@esmi. It worked this time but it has changed the wrong background color.
The color i wanted to change is the background on both sides of the page. The one which is light grey by default for the TwentyTen theme.
This has changed the actual page background which was originally white.
Forum: Themes and Templates
In reply to: Changing background colour in TwentyTen ThemeIve just added that # but it made no difference. The background color is still the same and the header image is moved down the around 10 pixels.
Forum: Themes and Templates
In reply to: Changing background colour in TwentyTen ThemeI mean the background color which is shown on both sides of the page which is light grey by default for the TwentyTen theme.
I tried refreshing the browser but it hasn’t made any difference. I also tried using a different browser.
By putting background: in the Child Theme’s style.css file it’s actually made the header image moved down by around 10 pixels for some reason.
#wrapper { background: E2E0E0 margin-top: 0; }Forum: Themes and Templates
In reply to: Header width in TwentyTen Child ThemeIf i do this where exactly do i put the code
<div id="wrapper" class="hfeed">In header.php it shows;
<body <?php body_class(); ?>> <div id="wrapper" class="hfeed"> <div id="header">Forum: Themes and Templates
In reply to: TwentyTen Child Theme – Functions.phpIve done it now although i didn’t use a copy of header.php to change the header image. I just copied lines 75-178 from the functions.php file when i created a new functions.php for the child theme.
Thanks,
Forum: Themes and Templates
In reply to: TwentyTen Child Theme – Functions.phpIt’s working now. The problem was i missed out the part in the code
get_bloginfo('stylesheet_directory')The problem im having now is the black bar is to low down by around 32 pixels. My header image is 940×90 but the black bar is around 120 pixels low down.
How do i move the black bar up by around 32 pixels so the header image is shown at it’s correct height size?
Here’s the code im using for the style.css file for the Child Theme.
[CSS moderated as per the Forum Rules. Please just post a link to your site.]
Also in the Child Theme’s functions.php ive set the code to;
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 90 ) );Forum: Themes and Templates
In reply to: TwentyTen Child Theme – Functions.phpIve followed the instructions on this site – http://wpti.ps/functions/replace-default-header-image-twenty-ten-theme/ and created a new functions.php in the twentyten-child directory and copied lines 75-178 of the Twenty Ten functions.php into it like it explains to do.
Problem is, when i edited the section below of functions.php to change the header image URL it doesn’t display the new header image.
define( 'HEADER_IMAGE', '%s/images/header.png' );As you can see it just shows a red X on the site – http://gymexerciseathome.com/
The actual header image i want it to display is located at twentyten-child/images/header.png How do i get it to display this header image?
Forum: Themes and Templates
In reply to: TwentyTen Child Theme – Functions.phpI see there’s also a URL to change the header image in functions.php
Is that just an alternative way of changing the header image?Does the header image URL which is set in header.php override what is says in functions.php
Ive copied the entire functions.php file to the twentyten-child folder then edited the code but it hasn’t changed the header image. It just has the default path.jpg header. Here’s the section of the code which i put for the URL.
<<?php echo $heading_tag; ?> id="site-title"> <span> <a href="<?php echo home_url( 'twentyten-child/images/header.png' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> </span> </<?php echo $heading_tag; ?>> <div id="site-description"><?php bloginfo( 'description' ); ?></div>What does it seem the problem is?
Forum: Themes and Templates
In reply to: TwentyTen Child Theme – Functions.phpYou said i need to make a copy of header.php to change the header URL.
Ive just looked at the header.php file but i don’t see the header URL anywhere. Is this the correct file to use?
Or should i put the code in functions.php instead to change the header URL?
Forum: Themes and Templates
In reply to: TwentyTen Child Theme – Functions.phpDoes it need any closing tags also?
Forum: Themes and Templates
In reply to: TwentyTen Child Theme – Functions.phpI entered the code you mentioned in the functions.php in the twentyten-child directory but it just displays the text at the top of the site.
Here’s the site http://www.gymexerciseathome.com
What am i doing wrong?