Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Making main menu part of the sticky header?

    • 8 years, 6 months ago poppyd
      Participant

      Expired

      Hi

      We have our main menu underneath the header and wanted to know if it is possible to include the main menu as part of the sticky header ie

      When you scroll a page, you get the bar appear at the top which shows the logo … How easy would it be to include the blue menu bar so that it is always visible at the top of the page when scrolling?

      Thanks

      J

    • 8 years, 6 months ago poppyd
      Participant

      Expired

      This reply has been marked as private.
    • 8 years, 6 months ago Mirela
      Participant

      Hello,

      This is not this header default style (to have the menu sticky as well). So to change it you need to edit theme files. Please go to file js/main.js and find these lines:

      /* ----------------------------- Sticky Nav ------------------------------ */
      
      function codelessStickyNav(){
      	"use strict";
      	var opened = false;
      	var position = $('.header_wrapper').css('position'); 
      	var bool_test = false;
      	$('.logo_only_sticky .header_wrapper #logo').css('opacity', 0).css('visibility', 'hidden'); 
      	$(window).scroll(function(){
      		var top = $(this).scrollTop(); 
      
      		if(top > stickyNavTop + 300 && !opened){
      			
      		   $('body').addClass('sticky_header'); 
      
      			setTimeout(function(){
      				if($('.header_wrapper').hasClass('background--dark')){
      					$('.header_wrapper').removeClass('background--dark');
      					bool_test = true;
      				}
      				$('.header_wrapper').css('position', 'fixed').css('visibility', 'visible').addClass('open');
      				opened = true; 
      
      			}, 200);

      Replace with:

      /* ----------------------------- Sticky Nav ------------------------------ */
      
      function codelessStickyNav(){
      	"use strict";
      	var opened = false;
      	var position = $('.header_wrapper').css('position'); 
      	var bool_test = false;
      	$('.logo_only_sticky .header_wrapper #logo').css('opacity', 0).css('visibility', 'hidden'); 
      	$(window).scroll(function(){
      	  var top = $(this).scrollTop(); 
                   if(top > stickyNavTop + 300 && !opened){
      			
      		   $('body').addClass('sticky_header'); 
      
      			setTimeout(function(){
      				if($('.header_wrapper').hasClass('background--dark')){
      					$('.header_wrapper').removeClass('background--dark');
      
      					bool_test = true;
      				}
      $('.header_wrapper').css('position', 'fixed').css('visibility', 'visible').addClass('open');
      $('.full_nav_menu').css('position', 'fixed').css('visibility', 'visible').addClass('open');
      				opened = true; 
      
      			}, 200);

      Let us know how it will go.

      Best regards!

    • 8 years, 6 months ago poppyd
      Participant

      Expired

      This reply has been marked as private.
    • 8 years, 6 months ago Mirela
      Participant

      Hello,

      Can you please add the ftp login information on your extra information fields of your profile data. So we can give it a closer look.

      Read this article for more information.

      Best regards!

    • 8 years, 6 months ago poppyd
      Participant

      Expired

      Hi

      OK I have added that info now in the profile for you.

      Thanks

      J

    • 8 years, 6 months ago poppyd
      Participant

      Expired

      Hello

      Is there an update on the above problem please?

      Thanks

      J

Viewing 6 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password