WordPress.org

Ready to get started?Download WordPress

Forums

CleanPrint
[resolved] CleanPrint rearranges layout of content in shortcodes (3 posts)

  1. StefExakt
    Member
    Posted 1 year ago #

    Hey There,

    I really think this is a great plugin, however, I am having some issues.
    When I try to print certain pages of my site, the content is rearranged. This is most apparent on two pages of my site that have content contained in a "toggle" shortcode. While I was pleasantly surprised that your plugin pulls the content of each "toggle section" even if its not "open", it rearranges how the text lays out, scrambling the message of the content.

    For example, on my About page the title of my second toggle section appears at the very top of the printed page, and not at all connected to that toggle section's text content.

    My site has a coming soon page up, I can provide you login details via email (stefanie@exaktmarketing.com) if you think you may have a solution.

    Thanks, I would also take a recommendation on another printer plugin if you know of one that may work better.

    http://wordpress.org/extend/plugins/cleanprint-lt/

  2. johncadams
    Member
    Plugin Author

    Posted 1 year ago #

    Did my suggestion work for you?

  3. StefExakt
    Member
    Posted 1 year ago #

    John,

    Your suggestion did work! Thank you so much for the suggestion and the quick timing!

    For other users with the same problem, here was how I resolved the issue:

    The issue I had with the titles not appearing at all was a spacing issue of the shortcode itself and had nothing to do with the printer plugin. Once I removed the extra spaces in the shortcode the titles appeared.

    However, the title of my second toggle shortcode was appearing as the page title and not appearing for the title of that section (in the print view). To solve this I needed to add a class of cleanprint-title to the div that controls the page title in the page template itself.

    This div was in my header.php
    So I changed this line:
    '<div class="page_title_content">'
    to this:
    '<div class="page_title_content cleanprint-title">'
    and voila! My page title shows up at the top of the print page, and my toggle title shows up where it is supposed to!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.