badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

AMP / Mobile CUSTOM Home PAge

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #76038
    the5krunner.com
    Participant

    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)

    #76046

    Hi @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

    #79063
    the5krunner.com
    Participant

    does 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.

    #81982
    the5krunner.com
    Participant

    add 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) 😉

    #81983
    the5krunner.com
    Participant

    or i guess i could jsut put the categories straight into that code !! doh

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.