Toggles char and size

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10037728
    hidroxid
    Participant

    Hello

    In the Toggles I want to change the icon that is shown as open and closed.

    Additionally, in Simple Toggles, I would like to reduce the size of the box (and the icon) that shows the plus and minus, depending on whether it is opened or closed.

    Regards



    Template Version: 8.3.0
    #10037740
    Support
    Keymaster

    Hello,

    To change the icon for the Simple Toggles:

    (css/custom.css):

    /* Toggle expanded */
    .toggle.toggle-simple .toggle.active>label:before, .toggle.toggle-simple .toggle.active>.toggle-title:before {
        content: "\f068";
    }
    
    /* Toggle Collapsed */
    .toggle.toggle-simple .toggle>label:before, .toggle.toggle-simple .toggle>.toggle-title:before {
        content: "\f067";
    }

    * These “content” values you can get in the https://fontawesome.com/ website. Look for the desired icon and get the code.

    To reduce the size:
    (css/custom.css):

    /* The blue square */
    .toggle.toggle-simple .toggle>label:after, .toggle.toggle-simple .toggle>.toggle-title:after {
        width: 18px;
        height: 18px;
    }
    
    /* Reduce icon font size */
    .toggle.toggle-simple .toggle>label:before, .toggle.toggle-simple .toggle>.toggle-title:before {
        font-size: 5px;
    }

    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


    #10037751
    hidroxid
    Participant

    Hello

    Ok, the font size was reduced, but the box around it still the same size.

    How can i reduce it too?

    Thanks


    #10037752
    hidroxid
    Participant

    See the image please: Example


    #10037766
    Support
    Keymaster

    Hello,

    Please try adding the !important flag at the CSS:

    /* The blue square */
    .toggle.toggle-simple .toggle>label:after, .toggle.toggle-simple .toggle>.toggle-title:after {
        width: 18px !important;
        height: 18px !important;
    }

    Clear your browser cache if you are running in a local server like Apache or Nginx.

    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


    #10037769
    hidroxid
    Participant

    Hello.

    Good, but now how can i move the icon inside the blue square or center it? When i reduce the font size and the square, the icon is moved to right.


    #10037776
    Support
    Keymaster

    Hello,

    You can move with top and left values:

    /* Reduce icon font size */
    .toggle.toggle-simple .toggle>label:before, .toggle.toggle-simple .toggle>.toggle-title:before {
        top: 5px;
        left: 7px;
        font-size: 5px;
    }

    * Play with the values to see what fits better with your design.

    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


    #10037781
    hidroxid
    Participant

    Superb!

    A big thanks!


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

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