• Resolved ionadmin

    (@ionadmin)


    Using the Genesis Author Pro theme with this Geneisi Author Pro plugin.
    I would like to be able to add my site’s sidebar to the Book pages. There’s a lot of empty real estate on the right side of the book pages.

    I have marked the Series page to use the default page format, which is content with right side bar.

    The book pages do not have a page settings on them.

    Thanks for any assistance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @ionadmin

    Genesis Author Pro replaces the sidebar on book pages with custom content specific to each book.

    If you fill out the book meta data and purchase links, you’ll see more content in the sidebar, as in the theme demo: https://demo.studiopress.com/author/book/midnight-on-earth/.

    If you are not using the book meta data or would prefer to replace the custom book template with a regular page template that gives you sidebar options, you could:

    1. Create a single-books.php file in the Author Pro theme.

    2. Place this content in that file:

    <?php
    
    // Use the regular template for single books, instead of the custom one.
    remove_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
    genesis();
    

    3. Place this code at the bottom of the theme’s functions.php file:

    add_post_type_support( 'books', 'genesis-layouts' );

    WordPress will then display the books as if they are regular pages, and you’ll be able to select a content-sidebar, sidebar-content, or full-width layout.

    Note that you’ll see page meta data (the publish date) on the book template, and will have to add the book image manually as a result of these changes. You could modify the single-books.php template further to hide the meta data and auto-insert the featured image if you wish.

    If you need further assistance with this or other theme customisations, I recommend checking out the community resources here: https://my.studiopress.com/community/.

    Thread Starter ionadmin

    (@ionadmin)

    Thank you, Nick, for the information. I may try setting up a custom book template.

    If you take a look at our staging site at https://staging1.daisypettles.com/book/shady-hoosier-detective-ghost-busting-mystery/ – you will see that we have populated the meta data for the book, but it stacks above the text. I’ve tried populating all three purchase links (we don’t have all URLs at this time) and I’ve tried increasing the amount of text, but we still end up with it all in one column – thus my desire to fill up the right side of the page with a sidebar.

    I appreciate the instructions you shared that will guide me through creating a new template for books.

    Thanks,
    Cindy

    You’re welcome, Cindy!

    The Genesis Columns Advanced plugin styles are conflicting with the theme styles for the book page on your staging site.

    If you disable Genesis Columns Advanced, you will see a layout that matches the demo at https://demo.studiopress.com/author/book/midnight-on-earth/.

    Thread Starter ionadmin

    (@ionadmin)

    You rock, Nick! Deactivating that plug-in was the magic.
    Thanks again for the assist!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add sidebar to book pages’ is closed to new replies.