Changing which widgets show on certain pages

  • garyc

    #4939

    Hi,

    This question is probably beyond stupid, so my apologies in advance!

    I have your fantastic theme running on http://www.hackneytools.com, and on the front page, I have posts,

    flanked by a right and left sidebar. I’d like to make a new page, which will be mainly text, but either I

    would like to:

    a. Use the one column-no sidebar page option, and somehow restrict the width of the text, so that

    the body copy is not so wide it runs all the way across the whole page..

    or

    b. Use a page option which has sidebars, like the front page, but I can’t figure out how to disable

    or enable certain widget just for this one new page? If I change which widgets show under the

    main appearance Graphene>Widgets page, it affects all the pages?

    Can you help please? It’s a real stumbling block for my small brain…

    best

    Gary

    Mod

    Kenneth John Odle

    #29938
    Quote:
    Use the one column-no sidebar page option, and somehow restrict the width of the text, so that

    the body copy is not so wide it runs all the way across the whole page..

    Use this custom CSS:

    .page-ID .content-main {width: 700px;}

    where ID is the WP unique ID number for that page.

    Quote:
    Use a page option which has sidebars, like the front page, but I can’t figure out how to disable

    or enable certain widget just for this one new page?

    Use the Widget Logic or Widget Context plugins to control the placement of widgets.

    garyc

    #29939

    Aha! Thank you so much!

    Mod

    Kenneth John Odle

    #29940

    Dude, you have an awesome blog. I love old tools. When you talk about process rather than result, and connecting to the work, rather than just the product, I completely understand.

    My only wish is that you include a top bar and an RSS feed there, which would make it easier to follow you.

    Other than that, kudos!

    Josh

    #29941
    Quote:
    I love old tools.

    Really? I didn’t know there was a “market” for this. I had some elderly relatives pass away, and I currently live in the house of one of them. In the basement is a tool room. There are a TON of old tools and a lot of stuff that looked just like the pictures and videos on “garyc’s” blog.

    I’ll have to take some pics and send them to you and see if anything “jumps” out at you. There are two huge hanging wall racks across half the room.

    garyc

    #29942

    Hi Josh

    Ok, I published this new page, more to see what happened than anything else. I ‘ID’d’ the page as 354, but putting that line in as custom CSS didn’t seem to affect the column width. Any ideas?

    All custom css for the child them now reads:

    /*

    Theme Name: Graphene Child Theme

    Description: Child theme for Hackney Tools

    Author: Gary

    Template: graphene

    (optional values you can add: Theme URI, Author URI, Version)

    */

    @import url(“../graphene/style.css”);

    .page-354 .content-main {width: 700px;}

    Thanks

    Gary

    Josh

    #29943

    What is the url to the page?

    If I’m not mistaken, I think you are missing the -id- part of the css.

    Try this:

    .page-id-354 .content-main {width:700px;}

    garyc

    #29944

    Hi Josh

    Ok, I realised I also need the ‘id’ bit. But still not affecting the text. Any ideas?

    .page-id-354 .content-main {width: 700px;}

    Also, not sure I replied properly on forum about the tools. Yes, please send pics.

    garyc

    #29945

    Josh

    #29946

    Did you try my code above? I don’t see it loaded on your site.

Viewing 10 posts - 1 through 10 (of 26 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!