Support » Plugin: AMP for WP - Accelerated Mobile Pages » how to hide author and date of page?

  • Resolved toomail

    (@toomail)


    Hello I try AMP for WP,
    I have a problem to hide the author and the date of the page
    I try
    #Sexy-author-bio {display: none;}

    As described on
    https://wordpress.org/support/topic/incorrect-author-2/

    This does not work on the Design One template that I use for my site
    How to hide this?

    something else,
    The amp pages are clearly visible on my site by adding /amp at the end of the URL however the links present in the amp page does not point to another page /amp and refer to the standard version of the site
    Is this normal? Should I take over all the links?
    Thank you for your feedback,

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi toomail,

    The CSS code #sexy-author-bio{display:none;} will hide the HTML element with the sexy-author-bio id as shown in this picture : http://imgur.com/a/gBHu1.

    So basically you need to aplly the “display:none” instruction to the HTML emelent you want to hide.
    Exemple : if the author name is is in : <span id="author">Bob</span>
    then the CSS code should be : #author{display:none;}

    Bottomline it would be easier to answer your question if you would provide us with a link to the page or the HTML code 🙂

    Thanks!

    • This reply was modified 2 years, 3 months ago by  nina_bee.
    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @toomail

    Thank you so much for using our plugin.

    To hide the author and the date of the page, you can follow these steps.

    Go to AMP settings > Getting Started > Design > Launch Post Builder > AMP > Design > Disselect Meta Info. please refer to this screenshot http://take.ms/2MHf3

    Coming to your another query,

    Yes, it is usual. If you enable mobile redirection from Advanced settings, if the user visits your website from a mobile, when he click the link in an AMP page, it will redirect him to another post/page AMP version (if AMP enabled on that post/page). But on Desktop, it will redirect to Standard version.

    Hope it helps.
    Let me know if you have any questions.

    btw thanks @nina_bee for helping AMP Community.

    Work fine Thank!

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @toomail

    Happy to hear your issue has been resolved.

    Is there anything i can help you with AMP? Feel free to contact us, if you have any questions regarding AMP. We will be happier to help you.

    This was useful for me too. I was looking specifically for a way to hide the author and date information that appear on top of the page. Thank you! Great plugin.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @enxaqueca,

    Thank you so much for using our plugin.

    If you like our plugin, please support us by leaving your feedback here: https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/

    It will help us to improve more.

    Regards
    Marqas

    Hello!

    Thank you so much

    A question… how to remove or hide the date from comments?

    Thanks!

    swagataminnovations

    (@swagataminnovations)

    I am using a genesis framework theme, and I want to know how I can implement and show the “last modified date” for my posts in the amp version of my website.

    In normal view I can easily do this by adding the following code in my functions.php, but not sure how this may be implemented in the amp view, please help!

    add_filter( ‘genesis_post_info’, ‘sp_post_info_filter’ );
    function sp_post_info_filter($post_info) {
    if ( !is_page() ) {
    $post_info = ‘Last Updated on [post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]’;
    return $post_info;
    }}

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @swagataminnovations

    I would recommend you to create a new thread since this is already an existing resolved topic.

    We already have an option to display “Last Updated” date and time, so why don’t you try to use it? Maybe you won’t need to add the code at all.

    Let me know if that option helps.

    swagataminnovations

    (@swagataminnovations)

    Thank you very much Ahmed, I was really amazed to see how quickly you solved the problem by adding the “last updated” option in your recent plugin update, and I applied it immediately to my website and it is running successfully now.

    There’s one more request I would want to bring to your kind notice:
    I want to hide the date for the comments also, because the readers usually do not feel interested to read the older comments and skip them.

    I tried the following CSS, it works by hiding the date stamp, but it also hides the name of the comment author:

    .single-post footer.comment-meta {
    display: none;
    }

    Kindly help us to solve this issue.

    Your kind support and cooperation is greatly appreciated.

    Best Regards

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @swagataminnovations

    No problem 🙂

    Can you please send me the URL? So that I can check and help you with it.

    swagataminnovations

    (@swagataminnovations)

    Thank you Ahmed,

    Here’s an example URL, for your refernce:

    https://www.homemade-circuits.com/multiple-battery-charger-using-dump-capacitor/amp/

    I would like to hide the comment date but keep the author name intact, as it is seen in the normal view

    https://www.homemade-circuits.com/multiple-battery-charger-using-dump-capacitor/

    Kind Regards
    Swag

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    @swagataminnovations Just add this in the Custom CSS:

    body .comment-metadata {
        display: none;
    }

    That should do the trick.

    and Thank you for using the plugin!

    swagataminnovations

    (@swagataminnovations)

    It worked like charm!

    Thanks so much Ahmed.

    Got everything that I needed from this plugin, beyond expectations!!

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @swagataminnovations

    Thank you so much! Please give us a review! My team will appreciate it: https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/?filter=5

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘how to hide author and date of page?’ is closed to new replies.