another icon or none on nav items

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10037382
    Magmo
    Participant

    Hello, on page blog-large-image-sidebar-left.html there is a treeview to the left. Is it possible to change the arrow thats in front of the text to another icon, or remove it completely for items that does not have anything to collapse?



    Template Version: 8.3
    #10037387
    Support
    Keymaster

    Hello,

    First add a custom class in the nav list:

    <ul class="nav nav-list flex-column mb-5 custom-nav-list">...

    * This way make sure we will not affect other nav lists in the template.

    To remove the arrow add in (css/custom.css):

    ul.custom-nav-list.nav-list li a {
        padding-left: 0;
    }
    ul.custom-nav-list.nav-list li a:before {
        content: none;
    }

    If want to change the icon:
    (css/custom.css):

    ul.custom-nav-list.nav-list li a:before {
        content: "\f061";
    }

    * The content icon code I get from here at FontAwesome website:

    We hope this helps!

    Kind Regards,

    Rodrigo.


    If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


    #10037391
    Magmo
    Participant

    Thanks, this works for all items but I would only like to change/remove icon for li items that does not have any sub items. Hope this make sense…


    #10037399
    Support
    Keymaster

    Hello,

    Oh Right!

    This way we need identify the items that has submenus. Here’s and example of nav list structure with identifiers:

    And here’s the custom CSS code you need:

    ul.custom-nav-list.nav-list > li:not(.has-submenu) a {
        padding-left: 0;
    }
    ul.custom-nav-list.nav-list > li:not(.has-submenu) a:before {
        content: none;
    }
    ul.custom-nav-list.nav-list > li.has-submenu ul li:not(.has-submenu) > a:before {
        content: none;
    }

    Hope this helps!

    Kind Regards,

    Rodrigo.


    If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


    #10037420
    Magmo
    Participant

    Great, Thanks!


    #10037423
    Support
    Keymaster

    Hello,

    Great the issue is now resolved!

    If you need further assistance, feel free to contact us.

    Kind Regards,

    Rodrigo.


    If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


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

This topic is marked as "RESOLVED" and can not rceive new replies.