Problem with custom shortcode add-on (PHP-code)
-
Hi there
I just got the license for the custom shortcodes add-on and I’m trying to implement this php-code. I know, I have to delete the <?php?>-tags, but it doesn’t work right.Here the original php-code:
<?php if ( my_wp_is_mobile() ) { ?> <div class="section fp-auto-height"> <div class="wrap-fix"> <div class="slide"> <?php } elseif ( my_wp_is_tablet() ) { ?> <div class="section fp-auto-height"> <div class="wrap-fix"> <div class="slide"> <?php } else { ?> <div class="section"> <div class="wrap-fix"> <div class="slide"> <?php }?>And I’ve tried that:
if ( my_wp_is_mobile() ) { <div class="section fp-auto-height"> <div class="wrap-fix"> <div class="slide"> } elseif ( my_wp_is_tablet() ) { <div class="section fp-auto-height"> <div class="wrap-fix"> <div class="slide"> } else { <div class="section"> <div class="wrap-fix"> <div class="slide"> }What’s wrong?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Problem with custom shortcode add-on (PHP-code)’ is closed to new replies.