Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #29385

    Kylie M
    Participant

    Hi, I would like to edit the accordion header and remove the +/ – OR replace these with a different icon? I edited the colour in the page css, can I do this there also?

    Thanks

    Kylie

    #29408

    Support
    Member

    Hi Kylie,

    To remove accordion header icons add following line of CSS to CustomizerCustomCSS

    .x-accordion-heading .x-accordion-toggle:before{content:"";}
    

    Thanks

    #29436

    Kylie M
    Participant

    That was quick! Thank you so much!

    #29437

    Support
    Member

    Hi Kylie,

    You’re Welcome!

    Thanks

    #29446

    Kylie M
    Participant

    Also is it possible to insert a different icon into each of the accordion headers before?

    What are the CSS to Customizer → Custom → CSS instructions for the size of the header text?

    Thanks

    Kylie

    #29803

    Support
    Member

    Hi Kylie,

    Yes, you can of course insert a different icon into accordion headers by adding something like below into Customizer → Custom → CSS

    .x-accordion-heading .x-accordion-toggle:before{content:"\f13d";}

    You can find large set of icons at http://fortawesome.github.io/Font-Awesome/icons/. When you click on an icon, you will find its “unicode”.

    The above unicode example of f13d comes from fa-anchor icon. Please make sure you put a “\” before the unicode as shown in above example.

    For modifying the size of accordion header text, please add the following code in Customizer → Custom → CSS

    .x-accordion-heading .x-accordion-toggle{
    font-size:120%;
    }

    You can of course define your desired font size in percentage form.

    Thanks

    #282129

    Ma
    Participant

    Hi,

    Is it possible to achieve this with icons that come with the X theme? Can you please show me an example?

    I understand if I did this it wouldn’t work:

    .x-accordion-heading .x-accordion-toggle:before{content:”[icon type=”adjust”]”;}

    but I don’t know another way to include in css form?

    #282221

    Nico
    Moderator

    Hi There,

    Try using this code.

    .x-accordion-heading .x-accordion-toggle:before{content:"\f042";}

    Hope it helps.

    Thanks.

    #338621

    Ben
    Participant

    Is it possible to have a different icon for each accordion title? I am trying to list a process and have ten steps and would like 10 different icons, one for each header. Is this too ambitious?

    #338845

    Friech
    Moderator

    Hi Ben,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Cheers!

    #361634

    jane_pattinson
    Participant

    Hi,
    I have replaced +/- icon on accordion headers with “\f0a9” using the below code. But after a while it reverts back to “f0a9” leaving out “\” in CSS and displays “f0a9” on the actual page. I’ve also tried using “\\f0a9” instead of “\f0a9” but still it reverts back and displays “f0a9” instead of the actual arrow icon. Any help is appreciated.

    .x-accordion-heading .x-accordion-toggle:before{content: “\f0a9” !important;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    color: #359899;
    font-size:20px;}

    http://prntscr.com/85ucjd

    #361762

    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    Would you mind opening a new thread with you concern and share us your admin credential so we could investigate you current setup.

    Don’t forget to set it as private message. You won’t be able to set it as private on the first post however on the 2nd you can.

    Thanks.

    #361801

    jane_pattinson
    Participant

    Please check the thread #361796

    #361830

    Rupok
    Member

    Hi @jane_pattinson

    We’ll check the thread as soon as we reach on the queue. Please don’t comment on this thread.

    Thanks