Support » Developing with WordPress » Continue Reading on Page only Mobile

  • Hello,

    I am developing a new project in wordpress and my client wants, on pages to be only a excerpt and a link “continue reading” (just show / hide), but only in the mobile version of the site.

    Is it possible to do this automatically?
    Or I will have to create a text for desktop and another one for mobile and change in css.

    I’m using a Willow Theme, and the regular excerpt doesn’t work(I don’t know why).

    Thanks in advanced for the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • A simple media query in the css will take care of that for you



    Another way is that, you can do something like this

    if ( wp_is_mobile() ) {
    	/* Display and echo mobile specific stuff here */
    } else {
            /* Display non mobile device stuff here */
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Continue Reading on Page only Mobile’ is closed to new replies.