AMP Problem with Product Page - by Baris

This topic has 8 replies, 2 voices, and was last updated 6 years, 6 months ago ago by Rose Tyler

  • Avatar: Baris
    Baris
    Participant
    September 21, 2017 at 17:15

    Hello,

    Royal Theme has problem with AMP. How can I disable “Return to Previous Page” section?
    Please see screen: https://prnt.sc/gnz9hw

    Thanks

    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 22, 2017 at 08:54

    Hello,

    You may add this code in Theme Options > Custom css:

    .back-history {
        display: none;
    }

    Regards

    Avatar: Baris
    Baris
    Participant
    September 22, 2017 at 13:53

    I added on Global Custom CSS, not work.

    and added on Custom CSS for mobile too, not work.

    I mean on amp page does not work this code.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 22, 2017 at 13:56

    Please clear cache and check http://prntscr.com/gobyrj

    Regards

    Avatar: Baris
    Baris
    Participant
    September 22, 2017 at 14:42

    Please see screen what I mean:

    https://prnt.sc/gocly6

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 25, 2017 at 09:27

    Hello,

    “Return to Previous Page” text you may find in royal/framework/theme-functions.php file.
    We recommend you to make changes in a child theme.

    Regards

    Avatar: Baris
    Baris
    Participant
    September 25, 2017 at 09:36

    Hi Rose,

    How can I remove it? This “Return to Previous Page” caused too many errors on my site (AMP).

    That is why I want to disable or remove.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 25, 2017 at 12:11

    Add this code in function.php file of your child theme:

    function et_back_to_page() {
        return;
    }

    Regards

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘AMP Problem with Product Page’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.