Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    You can use the CSS :before of :after pseudo-element in your theme’s stylesheet to add custom icons. Something like this should work:

    .accordion-title:before {
        font-family: FontAwesome;
        content: "\f095";
        /* Your other custom CSS here */
    }
    Thread Starter Smaele

    (@smaele)

    Hi Phil,

    Thank you for your quick response. This is working!

    I hardly dare ask: how do I get it right aligned?

    Plugin Author philbuchanan

    (@philbuchanan)

    Try this instead:

    .accordion-title:after {
        float: right;
        font-family: FontAwesome;
        content: "\f095";
        /* Your other custom CSS here */
    }
    Thread Starter Smaele

    (@smaele)

    Hi Phil,

    Got the right align resolved this way:

    .accordion-title:after {
        font-family: FontAwesome;
    	content: "\f138";		/*chevron-circle-right*/
    	float:right;
    }
    
    .accordion-title.open:after {
        content: "\f13a";			/*chevron-circle-down*/
    }

    Plugin Author philbuchanan

    (@philbuchanan)

    That’ll do it. Although you shouldn’t need to repeat the font-family and float in the .accordion-title.open:after {} part. Those should be inherited from .accordion-title:after {}.

    Glad it’s working for you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Using Fontawesome icons’ is closed to new replies.