Support » Fixing WordPress » What is worng with this code?

  • Resolved grexx

    (@grexx)


    Hi folks. I’m a newbie. I try to have a fixed footbar witch only shows up when its not showed on a mobile device. As you can see i use the wp_is_mobile() function. But i do something wrong. It ignores the wp_is_mobile() and the footbar shows up on a mobile.

    Can somebody help me with this?

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the #content div and all content after
     *
     * @package Oblique
     */
    ?>
    
            </div>
        </div><!-- #content -->
    
        <div class="svg-container footer-svg svg-block">
            <?php oblique_svg_1(); ?>
        </div>
        <footer id="colophon" class="site-footer" role="contentinfo">
            <div class="site-info container">
                <?php do_action('oblique_footer'); ?>
            </div><!-- .site-info -->
        </footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    
    if (wp_is_mobile()) { 
    
    } else {
    
    <div class="fixedBar">
    <div class="boxfloat">
    
    <ul id="tips">
    <a href="http://www.szkb.ch" target="_blank"><img class="size-medium wp-image-59" src="http://www.grexx.com/festival/wp-content/uploads/smallszkb_rgb-1-300x90.jpg" alt="SZKB, Siebnen" width="150" height="45" /></a>
    
    <a href="http://ottos.ch" target="_blank"><img class="alignnone wp-image-58 size-full" src="http://www.grexx.com/festival/wp-content/uploads/smallOttos.jpg" alt="Otto's, Siebnen" width="45" height="45" /></a>
    
    <img class="wp-image-57 size-medium" src="http://www.grexx.com/festival/wp-content/uploads/smallLaila-1-300x150.jpg" alt="Laila, Reichenburg" width="90" height="45" />
    
    <a href="http://www.altstoff.ch/" target="_blank"><img class="alignnone wp-image-56 size-full" src="http://www.grexx.com/festival/wp-content/uploads/smallKessler-1.jpg" alt="Kessler & Kessler, Siebnen" width="76.5" height="45" /></a>
    
    <img class="size-full wp-image-55" src="http://www.grexx.com/festival/wp-content/uploads/smallIsabelleBebie-1.jpg" alt="Jsabelle Bebié, Siebnen" width="87" height="45" />
    
    <a href="http://carrosseriedobler.ch/" target="_blank"><img class="alignnone wp-image-54 size-medium" src="http://www.grexx.com/festival/wp-content/uploads/smallDobler-1-300x105.jpg" alt="K. Dobler, Siebnen" width="128" height="45" /></a>
    
    <a href="http://schreinerei-schaetti.ch/" target="_blank"><img class="size-medium wp-image-53" src="http://www.grexx.com/festival/wp-content/uploads/Schaetti-300x113.jpg" alt="A. Schätti, Benken" width="119" height="45" /></a>
    
    <a href="http://multimotor.ch/" target="_blank"><img class="alignnone wp-image-52 size-medium" src="http://www.grexx.com/festival/wp-content/uploads/Multimotor-2-300x64.jpg" alt="Multimotor, Siebnen" width="210" height="45" /></a>
    
    <a href="http://www.dominik-meier.ch/" target="_blank"><img class="alignnone wp-image-51 size-full" src="http://www.grexx.com/festival/wp-content/uploads/DMsmall-1.jpg" alt="Dominik Meier, Schübelbach" width="45" height="45" /></a>
    
    </ul>
    </div>
    </div>
    
    }
    
    </body>
    </html>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘What is worng with this code?’ is closed to new replies.