Changing which widgets show on certain pages
-
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
Quote:Use the one column-no sidebar page option, and somehow restrict the width of the text, so thatthe 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 disableor enable certain widget just for this one new page?
Use the Widget Logic or Widget Context plugins to control the placement of widgets.
Mod
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!
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.
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
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;}Hi Josh
Page url is http://hackneytools.com/buying-selling-tools/
Did you try my code above? I don’t see it loaded on your site.
- You must be logged in to reply to this topic.
