• Hello,

    I was thinking a little more about GC message bar display on mobile.

    Actually, I was wondering if it is possible to avoid the zoom which occurs writing the email in the textfield. My theme based on twenty fifteen is almost without zoom while filling the forms on mobile.

    I noticed that GC message bar has a php file (style-gc-message-bar.php) with this following code:

    <?php
    require(‘../../../wp-blog-header.php’);
    @header(“Content-type: text/css”,true,200);
    require_once( plugin_dir_path( __FILE__ ) . ‘init-options.php’);
    Gc_MessageBar_CF::set_prefix(“Gc_MessageBar”);
    $renderer = new Gc_Message_Bar_Style_Renderer(GC_MESSAGE_BAR_NS);
    $renderer->configure(array());
    $renderer->render(array(“echo” => “true”));

    I checked in the header.php of my theme, it is the following:

    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width”>
    <link rel=”profile” href=”https://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
    <!–[if lt IE 9]>
    <script src=”<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js”></script>
    <![endif]–>
    <script>(function(){document.documentElement.className=’js’})();</script>
    <?php wp_head(); ?>
    </head>

    I try a few changes but it does not work.

    Would it be possible to modify in this case the style-gc-message-bar.php file in order to fit with the header.php of my theme?

    Thank you very much for the information!

    Have a good day!

    Cédric.

    bio-transition.com

    https://www.ads-software.com/plugins/gc-message-bar/

  • The topic ‘mobile optimization’ is closed to new replies.