(CSS) Widget for grandchildren pages

  • Unknown's avatar

    Please help. I have figured out how to hide a widget on one page or only show a on one page. I want to be able to show a widget only on pages 3 levels down. Or — alternatively — assign a class to a group of pages.

    Has anyone done this.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Your theme is a premium theme and read-access to the premium themes forum is now open to all users so you can search to see if your question has been previously asked and answered there. The premium theme forums are at http://premium-themes.forums.wordpress.com/ with separate sections for each theme. http://premium-themes.forums.wordpress.com/forum/tapestry

    If you are not successful when searching there is a link for the specific Premium Theme support forum for your theme under Appearance -> Themes in your blog’s Dashboard, but do note that the premium theme must be active and you must be signed in as the user who purchased it in order to see it and post to it.

  • Unknown's avatar

    The theme I’m trying to code for is Fresh & Clean, which is free not premium.

  • Unknown's avatar

    What is the URL string with http:// of the blog wearing Fresh and Clean please?

  • Unknown's avatar

    edit: “string” was meant to be “starting”

  • Unknown's avatar

    To assign a class to a group of pages would require access to the theme PHP script files and we do not have access to those on this multi-user platform.

  • Unknown's avatar

    @timethief– the blog is not public, since I only started working on it today. But the question is about custom coding CSS — so I’m not sure what difference it makes.

    @thesacradpath — after searching hours — that’s what I was afraid of. I might just have to hand code a short code on the page.

    Unless you can of an alternative — basically, I’m trying to get a list of sibling pages to display on my bottom level pages (I go three levels deep) – but only on the that level since the rest will have the benefit of my child pages menu.

    Thanks for the help.

  • Unknown's avatar

    You will have to code it into the page content at the bottom.

  • Unknown's avatar

    Classes like that are already built in on WordPress.com themes. For example, if you have child pages, each one has a body class such as “parent-pageid-1234”

    So if you wanted to target just the children of one particular subpage, you would find out the page ID of the subpage (let’s use “321” as an example) and then set styles like this:

    .parent-pageid-321 #text-1 {
    	/* put your styles here */
    }

    The “#text-1” part above refers to the ID value for a text widget.

    Apologies ahead of time if I over-explained this or missed the point of your original question. :)

  • The topic ‘(CSS) Widget for grandchildren pages’ is closed to new replies.