Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1407621

    Is it possible to create extra space above the secondaire menu in the header with another colour background ( bright pink #FC0FC0 )?
    I would like it to say: Bestellingen geplaatst tussen 30 mei en 11 juni worden 12 juni verstuurd
    See website link below

    Oris there a plugin for something like this ?

    #1407678

    Hey studioinktvis,
    Thank you for the link to your site, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_message_banner_script() { ?>
      <script>
    (function($){
      $('#top #header_meta > .container').each(function() {
      	var messageTitle = 'Bestellingen geplaatst tussen 30 mei en 11 juni worden 12 juni verstuurd';
      	var messageBanner = $('<p class="message-banner">'+ messageTitle +'</p>').css({'text-align':'center','margin-top':'0'});
      	$(messageBanner).insertBefore('.sub_menu');
    });
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_message_banner_script');

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Please see the screenshot in the Private Content area of the expected results.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.