rubbershark
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How do I make my hero banner automatically rotate?Any ideas guys?
Forum: Themes and Templates
In reply to: Lining up issue and why is my home page font bold?Ok, in my css there was a line of code saying letter spacing: -1.5px. I changed this to 0 and it fixed everything :0)
Paul
Forum: Themes and Templates
In reply to: Lining up issue and why is my home page font bold?I’ve fixed the lining up issue now but not the funny font displaying on my home page. Any ideas guys?
Thanks,
Paul
Forum: Themes and Templates
In reply to: Show a different background image on different pagesOk guys, I’ve actually sorted this out!
What I did was add this line of code to my header.php file in place of the body tag:
<body <?php if (function_exists(‘body_class’)) body_class(); ?>>I then created a line of code in the css file for each page id. Here’s an example:
.page-id-4 { background:#ffffff url(images/main_bg_location.gif) top center repeat-x; font:13px Arial, Verdana, Helvetica, sans-serif; color:#494949; padding:0; margin:0; }Hope this helps anyone having similar issues.
P
Forum: Themes and Templates
In reply to: Creating individual templates for each pageThis thread is now complete. I decided not to go down the ‘create different templates and header files’ route. Instead I applied different css body classes depending on my page id number. See this thread for more info:
Regards,
Paul
Forum: Themes and Templates
In reply to: Creating individual templates for each pageHi Jonas, thanks for the quick reply.
I’ve successfully created additional templates but now what I need to do is create different background images per template.
The templates I have created are pulling in ‘header.php’ files and within this file must be some code saying to pull in a certain style from the style.css. This piece of code I unfortunately cannot see or understand.
The line of code I have added into my style.css file is:
bodyturn { background:#ffffff url(images/main_bg3.gif) top center repeat-x; font:13px Arial, Verdana, Helvetica, sans-serif; color:#494949; padding:0; margin:0; }The only line of code I can see that’s relevant in my original ‘header.php’ file is this:
<?php wp_head(); ?>
</head>
<?php if (is_front_page()) { ?>
<body class=”html_bg”>
<?php } else { ?>
<body>
<?php } ?>My theme has a different template for the home page which is calling in ‘html_bg’. The original default template was calling in ‘body’ both of which are found in my style.css
Does this make any sense to you and do have any ideas?
Thanks in advance,
Paul