Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15254

    Hello

    Is it possible to create custom main menu?

    Or

    Remove underline and add a bg color active and inactive to main menu buttons?

    Thx

    #86800

    Hi,

    The underline and background colors for the active and inactive state of the menu can be set in the custom.css or Quick CSS. You would something like this:

    .main_menu ul li a {
    background-color: #000000;
    }

    .main_menu ul:first-child > li.current-menu-item > a,
    .main_menu ul:first-child > li.current_page_item > a {
    background-color: #000000;
    border-bottom: 0 !important;
    }

    #top .main_menu .menu li a:hover {
    background-color: #000000;
    }

    Regards,

    Mya

    #86801

    Thanks Mya,

    Hope this isnt too much but I have some page links nested on main menu pages and I’d like to keep main menu button activated. Is this possible?

    Also is it possible to add a custom link to logo?

    #86802

    Hi O5,

    To keep the “parent” link active you would need to add something like this to your custom.css.

    .current-page-ancestor, .current-menu-ancestor, .current-menu-parent,
    .current-page-parent, .current_page_parent, .current_page_ancestor {
    border-bottom:2px solid #000000; color:#cc3300;
    }

    To add a custom link to the logo, you would need to open framework/php/function-set-avia-frontend-functions.php and edit this line:

    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";

    Regards,

    Mya

    #86803

    Hi Mya

    Thank you for your time Im having trouble applying this, could you assist?

    Thank you

    #86804

    Hey!

    You can use a ftp software like filezilla to download/upload propulsion/framework/php/function-set-avia-frontend-functions.php. You can edit the file with any text editor of your choice (eg notepad++ or sublime text 2).

    Regards,

    Peter

    #86805

    Hello,

    I’m kinda new to CSS, so I added the code, and nothing changed. Am I missing something do I need to customize the code

    Thx

    #86806

    Hi,

    Maybe you just need to remove cache or browser history then reload the page.

    Cheers,

    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Hi’ is closed to new replies.