noski2009
Forum Replies Created
-
Hi Moogle,
Did you ever find a solution?
thanks,
Forum: Fixing WordPress
In reply to: page and category array questionYea sorry should have put down
get_header( $header2 ); ?>
Forum: Fixing WordPress
In reply to: page and category array questionThanks petervandoorn, I tried the get_header(‘header2’) thing but it just didn’t seem to work at all, the include(STYLES-yada, yada, yada bit works ok though, just need to change one css element for the logo and it’s done.
Forum: Fixing WordPress
In reply to: page and category array questionThanks alchymyth, and Peter,
Had a look the wordpress codex, bit above my level of understanding when trying to combine my code with that. Think I’m going to try and add a second header and add
include(STYLESHEETPATH."/header2.php");?>
to the relevant categories.Forum: Fixing WordPress
In reply to: page and category array questionThanks for your post Peter,
I see what your saying, I’m using Twenty Ten as a child theme and I think it use’s it’s own (crazy) semantic classes to the body tag i.e.
<body class="single single-post postid-393 single-format-standard logged-in admin-bar">
I suppose there’s a way I could get it to stop doing that and add my own classes, I might look in to that too.
Forum: Fixing WordPress
In reply to: excerpt bolck linkYes, I spelt block wrong in the title… I have dyslexia.
Apparently if you strip out the tags from the excerpt it’s a lot easier to to deal with in css.
Forum: Fixing WordPress
In reply to: Displaying different categories within a Twenty Ten Child Theme?I found that you can apply a stylesheet to different categories and I went for this:
<?php if ( is_category ('14')) { ?> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo bloginfo('stylesheet_directory') ?>/style-01.css" /> <?php } ?>
Though the above only had an effect on the archive page after much searching and stress I found that in order for it to effect the posts you have to change
( is_category ('14'))
to( in_category ('14'))
…Forum: Fixing WordPress
In reply to: Displaying different categories within a Twenty Ten Child Theme?I found an answer to my question here https://bit.ly/Ztd7 though…
$post = $wp_query->post; if ( in_category('14') ) { include(STYLESHEETPATH . '/lions-gallery-single.php'); } elseif ( in_category('9') ) { include(STYLESHEETPATH . '/latest-news-single.php'); } elseif ( in_category('18') ) { include(STYLESHEETPATH . '/tour-updates-single.php'); } else { include(STYLESHEETPATH . '/single.php'); } ?>
This only lets me edit elements on the page where as my css is geared to edit pages… is there a way for css to edit different pages by their categories?
Forum: Fixing WordPress
In reply to: Displaying different categories within a Twenty Ten Child Theme?Yes your right, I found out that it’s the single.php file being used to display the posts… but I can’t find a way to make an offshoot that will display differently, I take it that I can make a second loop based on the index loop, I then just need it to refer to another output other than the single.php file, sorry if this is really easy I read the above link but it didn’t refer to single.php.
Thanks for your reply.
Forum: Fixing WordPress
In reply to: Displaying different categories within a Twenty Ten Child Theme?I did but when I clicked through to the post it reverted to the main theme’s style or rather the main theme’s page ie page.php
is there a way it can go from gallery news section (which looks different from the rest of the site) to a single gallery page that has a different look from the main site but keeps the same style as the gallery page news section?Forum: Fixing WordPress
In reply to: Different logo on a different pageIt’s ok I found the error missing ‘ at
else $logo_image = 'mainLogo.jpg;?>
Second question I figured out my self, code for anyone else who’s stuck is:
<div id="header-logo" onclick="location.href='<?php bloginfo('url'); ?>'" style="cursor: pointer;" > <?php if (is_page(array('page-1', 'page-2', 'page-3','page-4', 'page-5', 'page-6', 'page-7'))) $logo_image = 'second-logo.jpg'; else $logo_image = 'mainLogo.jpg';?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php echo $logo_image;?>" alt="<?php bloginfo('name'); ?>" /> </div>
Forum: Fixing WordPress
In reply to: Different logo on a different pageSorry for being a pain but I also got a
Parse error: syntax error, unexpected T_STRING
on line four of your code?
thanksForum: Fixing WordPress
In reply to: Different logo on a different pagecool thanks esmi, can I also change the
if( is_page('Foo')
toif (is_page(array('Foo', 'Foo-page-1', 'Foo-page-2', and so on
?Forum: Fixing WordPress
In reply to: WP-PageNavi getting sctuck on the first page@alchymyth Thanks, that worked a treat!
Forum: Fixing WordPress
In reply to: WP-PageNavi getting sctuck on the first page