Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author johncadams

    (@johncadams)

    CleanPrint uses a variety of methods to locate the byline and dateline of the article but at times it misses. In which case the elements can be easily marked to guarantee CleanPrint sees them:

    <div class=”cleanprint-byline>AUTHOR</div>
    <div class=”cleanprint-dateline>DATE</div>

    Refer to the FAQ for more tagging options.

    Thread Starter light7

    (@light7)

    Dear johncadams

    I pasted above code into cleanprint, but that didn’t work.
    This prints Author: and Date:, but it missed detail information about Author & Date.

    In addition, this code even put the “Date: Author:” on the top of homepage.

    What I want is to place the byline and dateline of the article under the tile as follows.

    Title: ***
    author: ***
    date: *** ***.com
    ————————————————–

    article ~~

    Could you give some comments or another codes?

    Thanks

    light7

    Plugin Contributor lucascolin

    (@lucascolin)

    Hi Light7,

    There is more information on your question here https://www.formatdynamics.com/cpconfig/

    As a general rule you can add the class name “cleanprint-include” to elements you want to include in your print out and add “cleanprint-exclude” to any elements you dont want to include.

    does that work?

    Thread Starter light7

    (@light7)

    lucascolin

    That code works.

    <div class=”cleanprint-byline”>By Action Reporter</div>

    When I put the above code on Cleanprint, and I clicked the Cleanprint button to get PDF file, I can see “By Action Reporter” from the PDF file.

    But there is an another problem.
    When I put the following code on Cleanprint, even it was displayed on the top of homepage.

    Thanks.

    Plugin Author johncadams

    (@johncadams)

    You need to use this class tagging approach in your posts where there is an author. Not on every page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to print the name of author and posting date’ is closed to new replies.