whtnt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Links/Code not effective outside of my main indexthank ou very much for your help i will get too making the neceary changes!
there needs to be a way to give members on here reputation/feedback…it’s quite a good feature on other forums
regards and thank you!
Sam
Forum: Fixing WordPress
In reply to: Links/Code not effective outside of my main indexi have done that now, and the images show…but still no effect on behalf of the javascript…even though the path to that is based in the header, andy ideas?
Forum: Fixing WordPress
In reply to: Links/Code not effective outside of my main indexrelative path for the images? yes i think so….instead of “/image1.gif” i need to make it “example.com/images/image1.gif”?
Forum: Themes and Templates
In reply to: Adding a sidebarJust a very quick thought also that I forgot to mention, you must make sure to make the relevant changes to single.php
so once again, change <?php get_sidebar(); ?>
and also add:
<div id=”sidebar2″>
<?php include (TEMPLATEPATH . ‘/sidebar2.php’); ?>
</div>between the div tags for container and entries
regards
Forum: Themes and Templates
In reply to: Adding a sidebarHi fr0s3in
i’m just a completely self taught, very amateur coder and I learn as I go along. So although what i’m about to tell you does work for me, I would fully recommend you get it checked through with somebody who 100% knows exactly what is going on!
I was having the exact same problem as you, with the same theme. I also came across the same article that you did explaining how to add a sidebar!
That method does work, but with a couple of changes:
You need to change the register_sidebars((3) in function.php to:
register_sidebars((4)
keep the rest of function.php the same.
Next, you need to change:
<?php get_sidebar(); ?>
to:
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
You also need to include a div tag in style.css
I made mine this, but only because it worked!:
#sidebar2 {
float: right;
padding: 0 0 0 50px;
}Don’t forget that you also need to change the entire width of #container in style.css to something that allows for your extra sidebar. I made mine 1090px
Now you have all this sorted, you need to add the call to your index.php. I have shown below the beginning of my index template with the added code in bold…hope it works for you!!
<?php get_header(); ?>
<div id=”container”>
<div id=”sidebar2″>
<?php include (TEMPLATEPATH . ‘/sidebar2.php’); ?>
</div><div id=”entries”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
I hope this has been of some use to you, this works in both IE and FF.
Don’t forget that you wont see anything until you add some text into your newly formed sidebar2.php file.
Here is my site if you want to see what mine looked like
Regards, Sam