• digstertron

    (@digstertron)


    Hi All,

    I’ve managed to register a side bar menu on my website. I would like to know how to style the sidebars content. My side menu generates latest posts, having looked at Chrome’s inspector each post type is processed as a list item.

    How would I style the way the posts are presented?

    • This topic was modified 3 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    If you’re modifying an existing theme which is subject to periodic updates, it’s best to keep your modifications in a child theme.

    You can add any necessary CSS styling to the child’s style.css file. If styling is the only thing someone wanted to alter about a theme, they could use the customizer’s Additional CSS section, but if you have custom PHP code as well, then a child theme’s style.css makes more sense.

    If you desire to also alter the menu’s HTML, the wp_nav_menu() function has a number of filters you could use, or you could even develop a custom walker class for total control over the eventual HTML.

    Thread Starter digstertron

    (@digstertron)

    It’s my own custom theme which I built myself. wp_nav_menu() function should do the trick all the classes that I need to hook on to are there. Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Sidebars’ is closed to new replies.