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

Sticky Menu only for Homepage

Sticky Menu
    • 6 years, 7 months ago Space-Roasters
      Participant

      Hi,

      I’m activating the sticky menu option, but I only want it for the home page, not the rest. How I can customize this?

      Best,

      Hatem

    • 6 years, 7 months ago Ruco
      Keymaster

      Hello,

      You have to customize by adding a custom css code and disable the sticky menu:

      .home .header-top{ position:fixed }

      The code above can be added in the General > Custom code.

      Let us know.

      Regards!

    • 6 years, 7 months ago Space-Roasters
      Participant

      Hi,

       

      I turned the sticky menu off and then added this code to the general custom CSS. The menu is not sticky on any pages even the home page, it’s not working.

      check website

      http://www.roasters.space

       

      Best,

      Hatem

    • 6 years, 7 months ago Space-Roasters
      Participant

      So basically I want the home page to have sticky menu while other pages have it disabled. how I can achieve that?

    • 6 years, 7 months ago Ruco
      Keymaster

      Hello,

      Please can you edit this file folie\includes\codeless_html_attrs.php:

      edit the function codeless_extra_classes_header( $classes ) and replace the line:

      if( codeless_get_mod( 'header_sticky', false ) )

      replace with:

      if( codeless_get_mod( 'header_sticky', false ) && is_home() )

      Save the file and let us know. Please activate the sticky header.

      Let us know.

      Regards!

    • 6 years, 7 months ago Space-Roasters
      Participant

      Hi,

       

      Now when I activate the sticky menu, it does not work anymore. its always fixed!

      What to do now?

    • 6 years, 7 months ago Ruco
      Keymaster

      Hello,

      Sorry please replace the is_home() with is_front_page(). Keep in mind to switch on the sticky option.

      The css lines i gave you in the previous replies need to be removed.

      Let me know.

      Have a nice day!

    • 6 years, 7 months ago Space-Roasters
      Participant

      thank you, its working now perfectly

       

      Best regards,

      Hatem

Viewing 7 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