Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

how to make a shortcode not display on mobile

Home / Forums / Virtue Theme / how to make a shortcode not display on mobile

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
November 30, 2015 at 2:45 pm

hello,

my page is http://www.helpanartistout.com

and i was wondering if you could give me some advice.. i have a few places on the page that it is necessary to use spacing shortcodes to help align everything correctly. it looks good on the desktop, but it looks funny on mobile..

so, i created the following css

@media (max-width: 767px){
p.mobiledisplaynone {display: none;}}

and then put this around my shortcodes i didnt want to show

<p class=”mobiledisplaynone”>[space size=”40px”]</p>

… but it didnt work…

do you have any other recommendations?

  • The forum ‘Virtue Theme’ is closed to new topics and replies.