• Hi Andre,
    You have been very patient but I have another question.

    I made some adjustments to the css for the blog and need to do the same for a block that will hold articles and special pages. It has to be in a reusable block so I can use the same laout over and over. (Or will that just work out when I make changes to the stylesheet?)

    Also, the sidebar will have to be different than the blog sidebar because of the different information each will hold.

Viewing 1 replies (of 1 total)
  • Theme Author Rough Pixels

    (@roughpixels)

    For CSS and your block; you can add a class to the block via the Advanced setting in the block editor. Selecting the block in question, on the right side open the Advanced settings, and enter in a class name (whatever you decide to name it). Then, you can create the styling for that class. When creating a reusable block, I’ve never tried this, but if you add a class to it and then save it as reusable, it might hold that class…? Otherwise, each time you use it, you might have to re-add the class to it each time.

    Hopefully, that made sense?

    For sidebars having different widgets on different posts/pages, the best way is to use a plugin that lets you publish widgets to select posts/pages. I wrote an article about this before–turned out to be a popular one. This might help…

    https://www.roughpixels.com/blog/quick-tips/how-to-show-or-hide-widgets-on-specific-pages-with-wordpress/

    For Rough Pixels, this site uses the Widget Options plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Change page layout and add sidebar to article block’ is closed to new replies.