• Resolved somanyqs

    (@somanyqs)


    newbie alert again…as relates to sidebars and widgets (maybe?)

    I’m working with the Whitespace theme and trying to modify the page so I can have my usual content (from my Pages) in the center, and then to the right of the text have a long vertical table.

    What I have now (yuk!)
    https://criticalgolf.com/?page_id=523

    I’m a bit confused by the use of a r_sidebar in the main Page Template from the theme. I actually made another template for this page with the table, but I’m not sure where to go from there. I’ve tried removing the r_sidebar from the new page template and then wrapping the text keeping it to the left of the table with no luck.

    I’m just perplexed whether I should still be using a sidebar, if I should just try to get the text to wrap around the table, if I should make a bunch of productX_sidebar.php files (for each product page) but that seems like a disasterous idea.

    Any pointers to get me started would be super appreciated.
    My ultimate goal is to have a bunch of these “product” pages, and then put the specs in each. I should probably use some kind of database in the long run so the specs get dynamically pulled in for each page, but that would probably be waaaaaay too complex for me at the moment.

    Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • iridiax

    (@iridiax)

    If the tables are different for each page, then keep the table as part of your page content (not in the sidebar). It looks like you need a wider main content column so that the table will fit there. Unless you want to do some theme and css editing, I’d recommend finding a theme with a wider main content column. To wrap text around a table, search Google for: wrapping text around a table

    Thread Starter somanyqs

    (@somanyqs)

    Thanks!

    Ooops – I should have noted that I did try to figure out the wrapping text using
    ALIGN=”RIGHT”
    but unfortunately what starts happening is that the table starts moving to the left and writes over the l_sidebar…really strange (to me). Can’t seem to figure out why that is!

    Regarding switching themes – could I use the main content column file from another theme, and keep the rest of what I currently have?

    I have put quite a bit of time into modifying this theme (though you might not be able to tell – haha!) so if I can keep all the work I have done so far that would be fantastic-
    Thanks

    iridiax

    (@iridiax)

    If you want a wider main content column for your theme, then remove the right sidebar code and adjust the css width of the main content div in your theme’s style.css. I think that it is styled by #contentwider

    Thread Starter somanyqs

    (@somanyqs)

    Ahh – I figured out what I was doing wrong.
    To all those other newbies out there:
    Make sure the table in your style.css file isn’t forcing your tables wider than you want!

    Thanks iridiax-

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How modify r_sidebar to add a table… newbie alert’ is closed to new replies.