- This topic has 7 replies, 2 voices, and was last updated 5 years, 4 months ago by
hidroxid. This post has been viewed 1261 times
-
AuthorPosts
-
April 23, 2021 at 6:14 am #10037728
hidroxid
ParticipantHello
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.0April 23, 2021 at 11:12 pm #10037740Support
KeymasterHello,
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
April 24, 2021 at 12:23 am #10037751hidroxid
ParticipantHello
Ok, the font size was reduced, but the box around it still the same size.
How can i reduce it too?
Thanks
April 24, 2021 at 12:29 am #10037752April 24, 2021 at 1:53 am #10037766Support
KeymasterHello,
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
April 24, 2021 at 1:58 am #10037769hidroxid
ParticipantHello.
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.
April 24, 2021 at 5:33 am #10037776Support
KeymasterHello,
You can move with
topandleftvalues:/* 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
April 24, 2021 at 6:19 am #10037781hidroxid
ParticipantSuperb!
A big thanks!
-
AuthorPosts
This topic is marked as "RESOLVED" and can not rceive new replies.