Tagged: amp, mobile homepage
- This topic has 4 replies, 2 voices, and was last updated 3 years, 6 months ago by the5krunner.com.
-
AuthorPosts
-
March 21, 2020 at 11:32 am #76038the5krunner.comParticipant
I love this theme and it is almost perfect for me.
I want to change the mobile homepage
it can be a static page(I will then redirect the static page to what i really want to show but that is another story)
I was hoping to do this naturally without chaning CSS or creating a function.
eg can i redirect the imaginary amp home page: mysite.com/amp to what i really want to show. (no…but that’s the idea of what i want to do)
March 22, 2020 at 6:06 am #76046Theme Horse Support TeamKeymasterHi @the5krunner-com,
Yes you can redirect the link to any other else but you cannot set the different homepage for different screen views as you said you want to change the mobile home page and its not possible we guess. It means the contents will be same but the layout might be changed through responsiveness.
Thanks
July 2, 2020 at 9:18 am #79063the5krunner.comParticipantdoes anyone else know how i can totally override the AMP home page for this theme, perhaps using another plugin?
I use the standard wordpress AMP plugin as well.October 12, 2020 at 11:51 am #81982the5krunner.comParticipantadd this to functions.php and change the desired mobile homepage…seems to work !
add_action( ‘wp’, ‘tu_redirect_mobile’ );
function tu_redirect_mobile() {
if ( wp_is_mobile() AND is_front_page() ) {
wp_redirect( ‘https://the5krunner.com/mysepcialpage/’, 301 );
exit;
}
}what i will do is then redirect myspecialpage to a category. that category will be a list of recent posts (actually it will show several categories that will cover most of the latest posts) 😉
October 12, 2020 at 11:52 am #81983the5krunner.comParticipantor i guess i could jsut put the categories straight into that code !! doh
-
AuthorPosts
- You must be logged in to reply to this topic.