WordPress.org

Ready to get started?Download WordPress

Forums

Boilerplate
[resolved] Rename sidebars from xoxo to sidebar_primary (2 posts)

  1. inmote
    Member
    Posted 8 months ago #

    I'm a happy and satisfied user of the Boilerplate theme, so first a short thank you for this no-nonsense theme I can easily work with.

    However, in every child theme I cling onto it, I have a need of changing the sidebar files. You gave all the sidebar classes 'xoxo'.
    1. 'xoxo' reminds me of the way little Asian girls greet each other.
    2. I cannot style specific sidebars when they're all only named 'xoxo'.
    3. What does 'xoxo' stand for anyway? Is it a word like foo and bar?

    I would like to see the template improved to have id's for the sidebars. Now, I name them '#sidebar_primary' and '#sidebar_secondary' etc. to match the naming in the Widget section. Could you please add that?

    Also, could the 'xoxo' be renamed to something like 'sidebar'?

    Kind regards,
    Heidi Ulrich

  2. Aaron T. Grogg
    Member
    Theme Author

    Posted 8 months ago #

    Thanks, inmote!

    Here's a link to explain xoxo:
    http://wordpress.stackexchange.com/questions/29912/why-does-the-twentyten-theme-sidebar-ul-have-a-class-called-xoxo
    Which is related to:
    http://microformats.org/wiki/xoxo

    And my use of that class comes directly from the original Starkers, which is based pm TwentyTen, if I remember correctly.

    As for styling them, assuming you don't move your sidebar widgets around too often, there are plenty of well-supported CSS selectors to apply different styles to the various widgets:
    http://caniuse.com/#feat=css-sel2
    http://caniuse.com/#feat=css-sel3

    Otherwise, you pretty much just need to do a Find/Replace to either remove that class or replace it with something else.

    Cheers,
    Atg

Reply

You must log in to post.

About this Theme

About this Topic