Hi there,
It seems that I have a conflict with wp_is_mobile function and my theme which is OneStudio.
I would like that some parts appear only in the mobile version, that's why I want to use this function. But nothing happens :(
Here is an example of my code (in case of I haven't programmed it correctly):
if ( wp_is_mobile() ) { ?>
<header id="logo" class="col grid2<?php if(empty($smof_data['custom_logo'])) echo ' text-version'; if(!empty($smof_data['hide_header_menu'])) echo ' no-menu'; if(!empty($smof_data['logo_expand'])) echo ' expand'; ?>">
</header>
<?php } ?>
I tried plugins that propose the same kind of option. Same result = no result.
I precise that other conditional tags like if(is_page('mypage')) work.
There's no installed plugin on my site.
I tried to contact the theme author...he says that there is no problem between his theme and the function, which isn't true.
I am sure that there's a function from the theme blocking the mobile detection function.
How can I see that and solve this issue ?
Thanks for your reply