This topic has 8 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Rose Tyler
Hello,
Royal Theme has problem with AMP. How can I disable “Return to Previous Page” section?
Please see screen: https://prnt.sc/gnz9hw
Thanks
Hello,
You may add this code in Theme Options > Custom css:
.back-history {
display: none;
}
Regards
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.
Please clear cache and check http://prntscr.com/gobyrj
Regards
Please see screen what I mean:
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
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.
Add this code in function.php file of your child theme:
function et_back_to_page() {
return;
}
Regards
The issue related to '‘AMP Problem with Product Page’' has been successfully resolved, and the topic is now closed for further responses