• hi guys,
    on my site, https://www.artbyherbie.com/wptest, i have created a second sidebar by laying out my content in dreamweaver using divs and CSS, the second sidebar which is just a grey column is actually just a div contained within a container div. i write my page content in a seperate div called content, and copy and paste all the html, including grey column sidebar, into my various wordpress pages, CSS included.

    so i got my second static sidebar, without having to edit my theme. it did mean having a seperate html page for each of my wordpress pages, but hey im learning. however, ive progressed further, and after receiving loads of validation errors, i have decided to take the plunge and:

    1) edit my theme to create the second static sidebar instead of using a div layout in dreamweaver
    2) edit my theme’s content area accordingly to accomodate this new sidebar
    3) copy and paste only the relevant html content markup into my wordpress page html editor (instead of including the CSS for the divs such as content and sidebar, and some <head> tags etc)

    some more experienced members have advised me that this is the way to go, so im going ahead lol.

    i am ready to create my second static sidebar, i have been reading up and am confident to go ahead. please can you advise on the best way to start?

    a) should i delete all my current pages content before i add the second sidebar? (as the current html in each page contains the css AND divs for the existing second sidebar and page content)
    b) most of the tutorials only deal with creating dynamic widgetized sidebars, all i want is an empty grey colum about 120px wide into which i can add anything i want, text links, images, ads etc.

    thanks in advance and thanks for reading
    HH

Viewing 1 replies (of 1 total)
  • Thread Starter Johnny Bravo

    (@herbiehysteria)

    ok, thanks for the replies(!)

    my progress so far:

    1) created sidebar2.php
    2) edited functions.php to register new sidebar
    3)edited index.php and page.php with the ‘include’ tag to call the second sidebar.
    4) styled sidebar2 to look like the previous grey column sidebar i had when it was a div, and positioned to fit
    5) edited other classes such as content_area to accomodate the new sidebar

    VOILA it works, i can see my second sidebar in appearances> widgets and it appears on all my pages!

    6) i copied ONLY the content markup from my dreamweaver files, no css as text, no extra divs to act like sidebars

    it looks great, however only some minor CSS issues with placement, i have noticed that my new sidebar appears perfect on all my pages but when i click my ‘archive’ tab, https://www.artbyherbie.com/wptest/?page_id=521 the positioning is a bit stretched. can someone please help me identify which classes need editing in the stylesheet?
    thanks
    HH

Viewing 1 replies (of 1 total)
  • The topic ‘make static column to act as a second sidebar’ is closed to new replies.