• Resolved Sheriziya

    (@sheriziya)


    There’s another thing I found (besides the Simple Author Box, which is now resolved): The sharing links and the “Related posts/books show up under the “About the book” section. If I had expected them anywhere, it would be at the bottom of the book page where it is not located.

    How can I fix this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Sheriziya

    (@sheriziya)

    Ah, I noticed I forgot to mention: I would like to keep the related books, but not at that place. I’d much rather have them at the bottom of the page, down the preview. How can I make that happen?

    Plugin Author zookatron

    (@zookatron)

    Hi @sheriziya,

    This happens because, similar to the Simple Author Box plugin that we discussed in a different thread, the plugins/theme that creates this section is doing this by overriding the WordPress ‘the_content’ filter to add the author box to your posts. In MyBookTable the “main content” of the book is designated as the “About the Author” section, which is what we’ve had most requested from our users so that “sharing link” plugins and such will show their content there. We realize this may not be the perfect solution for everyone, but unfortunately this is not something that’s easy to make into a simple settings option, what is designated as the “main content” determines many things about how data is saved in the WordPress database and how the Book page is rendered, so it’s not easy to have this change at the click of a button.

    It is however possible to change this behavior via custom PHP development. All you would need to do is determine which actions the plugins are attaching to the “the_content” filter, unattach them from the MyBookTable books pages, and attach them to the “mbt_after_single_book” hook so they show up at the end of the page, or wherever you would like them to show up.

    If this is not something you are able to do, you may simply want to hide these sections on MyBookTable pages via CSS like you did for the “About the Author” section, using code like this:

    .mbt-book-section-content .sfsiaftrpstwpr {
        display: none;
    }
    
    .mbt-book-section-content .jp-relatedposts {
        display: none;
    }

    ~Tim

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Related books showing up under “About the book” as do the sharing links’ is closed to new replies.