Allowing some blog posts to select a custom sidebar
-
A client asked me to add a custom sidebar to a single post in their blog. It (all posts) currently defaults to a sidebar with “Recent News”.
Since their theme is a child of skeleton, is it possible to edit/move a php file in the child theme to allow for custom sidebars on some posts? The “sidebar” option added from “Simple Page Sidebar” is currently not available on the screen options for Posts, only Pages.
I have not worked with Skeleton or child themes as yet, so I was not sure where I had to make an edit to get the “sidebar” option to show up on the posts “screen options”.
Am I on the right track? Is this possible with SPS? I did not want to install another plugin for custom posts sidebars – it seemed redundant…
I saw that this may be possible with some of the forum entries (specifically, the one with “[resolved] Display Sidebar on a Custom Post”), but the code I have in my functions.php file does not contain a reference to “{{post_type}}”
When I saw that reference on the simple-page-sidebars forum… indicating to change the “{{post_type}}” reference with the code block mentioned… Problem is, that specified reference does not exist in my functions.php file, or any of the PHP files, that they use from Skeleton and their child theme… I searched for that string in all of the PHP files, and it was not found.
- The topic ‘Allowing some blog posts to select a custom sidebar’ is closed to new replies.