Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1207967
    tcb19931234
    Participant

    I have two problems at the moment. I believe one is to do with 3rd party plugins which you may not be able to help with but here’s the problem. I’m trying to redirect mobile visitors of http://www.Lumaquin.co.uk to a more mobile friendly home page of http://lumaquin.co.uk/?page_id=314.

    The problems I’m having are:

    1) The site is not redirecting mobile visitors automatically
    2) The mobile link when entered manually loads on desktop but not mobile.

    Thanks

    Tim

    #1208020
    Thai
    Moderator

    Hi Tim,

    Please add the following code under functions.php file locates in your child theme:

    if( is_home() && wp_is_mobile() ){
      wp_redirect( 'http://lumaquin.co.uk/?page_id=314' );
      exit();
    }

    Hope it helps 🙂

    #1208833
    tcb19931234
    Participant

    Hi,

    I’ve added the code, but doesn’t seem to have any effect…

    #1208851
    tcb19931234
    Participant

    I have edited the functions.php file but i don’t have the child theme activated. I’m operating from the original X theme. Is this why it’s not doing anything? If I install the a child theme, will I lose all the changes on my site?

    #1208912
    Christian
    Moderator

    Sorry for the confusion. Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/.

    Thanks for understanding. Take care!

  • <script> jQuery(function($){ $("#no-reply-1207967 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>