• Hi to everyone,

    I’m trying to add a line of text just below the Nav bar in the header…
    I can do easily editing header.php and it works on desktop version but not in mobile version : /

    What else should I edit?!

    Thank you for any suggestion…


    Diego

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hey Diego,

    Can you please share the code of “header.php” along with the additional line you have added?

    Thread Starter dceditore

    (@dceditore)

    Hi, thanks for your reply.
    Here is the code.
    Really don’t understand why it works on desktop but not on mobile…

    `<!DOCTYPE html>
    <html class=”no-js” <?php language_attributes(); ?>>
    <head>
    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-********-1″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-*******-1’);
    </script>
    <meta charset=”<?php bloginfo(‘charset’); ?>”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
    <link rel=”profile” href=”https://gmpg.org/xfn/11&#8243; />
    <?php if (is_singular() && pings_open(get_queried_object())) : ?>
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php endif; ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <div id=”mh-wrapper”>
    <header class=”mh-header”>
    <div class=”header-wrap mh-clearfix”>
    <?php mh_newsdesk_lite_logo(); ?>
    </div>
    <div class=”header-menu mh-clearfix”>
    <nav class=”main-nav mh-clearfix”>
    <?php wp_nav_menu(array(‘theme_location’ => ‘main_nav’)); ?>
    </nav>
    </div>
    <div>
    <h5>text I would like to add</h5>
    </div>
    </header>

    • This reply was modified 3 years, 4 months ago by dceditore.
    • This reply was modified 3 years, 4 months ago by dceditore.

    Is this code already added / changed on your site? I don’t see it on mobile either.

    Thanks for letting me know.

    Thread Starter dceditore

    (@dceditore)

    Hi, no I removed as soon as I check it didn’t work on mobile.
    Do you think syntax is correct?
    I just added a:
    <div>
    <h5>text I would like to add</h5>
    </div>
    Thank you

    I would like to see it on your website. Let me know if you added it again and what me to take a look.

    Thread Starter dceditore

    (@dceditore)

    Hi there, good morning.

    Now code is on-line, but nothing appears on desktop or mobile : /

    = = = = =

    <header class="mh-header">
    	<div class="header-wrap mh-clearfix">
    		<?php mh_newsdesk_lite_logo(); ?>
    	</div>
    	<div class="header-menu mh-clearfix">
    		<nav class="main-nav mh-clearfix">
    			<?php wp_nav_menu(array('theme_location' => 'main_nav')); ?>
    		</nav>
    	</div>
    	
    		<a href="https://www.diritto.net/quesiti-legali/"><mark> Hai un dubbio legale? Fai la tua domanda e ricevi risposta entro 24 ore! Veloce, facile, anonimo! € 19,90</mark></a>
    
    </header>

    = = = = =

    I expect to see my text-adv in a row, below the main-menu [PRIMA PAGINA | AREE TEMATICHE | INIZIATIVE E PETIZIONI…].

    Thank you for any suggestion,

    Diego

    • This reply was modified 3 years, 4 months ago by dceditore.
    Thread Starter dceditore

    (@dceditore)

    Cannot find it in view-source:https://www.diritto.net/

    WTFantastic, how?!

    Thread Starter dceditore

    (@dceditore)

    Typing https://www.diritto.net doesn’t appear.
    Typing https://www.diritto.net it appears (only on Desktop)!

    • This reply was modified 3 years, 4 months ago by dceditore.
    Thread Starter dceditore

    (@dceditore)

    Removed changes already. Tks

    Hi,

    Somehow I didn’t get any notification about your replies her till now, sorry about that.

    If it shows up on https but not on http I think that is a caching issue, either your own local cache or a server cache.

    Hope that helps. If you have any questions, please let me know!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How can I change mobile view?’ is closed to new replies.