• Resolved dinkybluebug

    (@dinkybluebug)


    I want to add another sidebar to the cubic theme. The front page is full of photos and is great, but the single post page has all this white space that I would like to utilise.

    Ive moved the main text over to the left, to create the space of the widget on the right using:

    .entry-content {
    	margin-left: 0;
    }

    Any idea how I can code in another sidebar, and then code it into this page?

    Ive tried a few attempts, but I dont really know what I am doing

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Adding another sidebar to a theme can be done, but requires some familiarity with PHP, HTML, CSS, and WordPress template structure. It’s normally done by creating a child theme with some template-file modifications, but since Cubic is already a child theme of Boardwalk, that’s not possible here.

    All that to say… if this is something you really want, you are probably better off looking for a theme that already has the layout structure that you need. ??

    Thread Starter dinkybluebug

    (@dinkybluebug)

    thanks Kathryn, I think you’re right.

    So speaking of child themes then, its mostly the functions.php that I change

    If the original theme had a functions.php file that contained content A, B, C

    and I wanted to add in D and E – currently at the moment, I add this onto the end of the functions file so it has A,B,C,D,E

    using child themes, would I create a functions file with A,B,C,D,E in , or leagve the parent with A,B,C and then have a child theme functions file with just D, E in?

    am I making sense?

    Moderator Kathryn Presner

    (@zoonini)

    If the parent theme function is pluggable (i.e. wrapped in a conditional that allows you to override it) you can copy the entire function into a child theme and add your new stuff to it.

    If it’s not pluggable, or simply if you prefer, you can also usually write your own custom function that hooks into the parent theme’s function if the hooks you need exist in the parent. You can learn more about these techniques by checking out some tutorials on how to create functions in child themes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add another sidebard to single post page’ is closed to new replies.