Jump to content
fintan

Using Bootstrap Icons in Accordion Header?

Recommended Posts

fintan+    1
fintan

Hi All

 

Site: http://tectrixone.com/our-products/

 

I'm trying to use Bootstrap Icons in Accordion headers but I don't seem to be able to use the Bootstrap icon code (or for that matter any text style code) mixed in with the pl-accordion shortcode. I can of course change the whole style of the Accordion header in CSS but I want to differentiate the arrow color from the text color.

 

Anyone done this or have any pointers it would be much appreciated - Many thanks 

 

--

Fintan

 

 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi Fintan,

 

You cant do it when using the shortcode. However, I have found a way around it, but it's a bit of a pain, what you will need to do is use the Shortcode like you have already to create your accordion and then view your page.

 

Then inspect your page, where the accordion is located and copy the entire HTML code.

Once the code has been copied, go to back to your page editor and replace the accordion shortcode with accordion HTML you have just copied.

Then go to the div called 

 

<div class="accordion-heading"><a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse1"><i class="icon-home"></i> Soup &amp; Sauces →</a></div>

and add the font awesome code for your icon, see the code above, where I have already added the icon-home.

 

Repeat the process for all your accordions and then save/publish the page. Refresh your page and the icons should be added, see my image below as an example.

 

http://d.pr/i/Rzmf

  • Like 2

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
fintan+    1
fintan

Hi Danny

 

Very clever! Thanks for taking the time to work it out. Much appreciated.

 

--

Fintan

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem, happy to help!


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
salestrakr    3
salestrakr

Danny, instead of the accordian bar, would it be possible to place a button on the page and have that initiate the accordion down?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

Not quite sure what you mean, therefore, would it be possible to create a new topic as this issue has been resolved and we will reply to your new topic.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • ppotent
      By ppotent
      Any chance of a pagelines table plug-in coming? I know that the use of short codes and bootstrap can achieve this, but I can't seem to find any easy/visual editor way of doing this. There are table plug-ins around for wordpress, but honestly, they are pretty clunky. I'd pay for a tables plug-in, given how much I would use tables if I could.
       
       
    • nandorj78
      By nandorj78+
      I checked the demo for the new bootstrap theme (http://themes.pagelines.com/bootstrap/) and I really liked the slider on it. I suppose it was not done using 'impulse' or 'flick slider', was it? How was it done?
    • micstepl
      By micstepl+
      is Bootstrab (http://getbootstrap.com/ ) kompatible to PL5? how to install most fitting?
    • balfred1345
      By balfred1345
      Hi, 
      I'm using El Sue's Accordion plugin  V1.7.4 in DMS2 using WP 4.4.1.
      I've created a set "Jobs2", and selected three accordions for the set. Here's a screen shot: http://screencast.com/t/MXYR9p1QoEAo
      The "accordion set to show" selection box no longer works, and all accordions I've made are showing instead of the set "Jobs2"  You can see this here: http://whub34.webhostinghub.com/~videoh6/cidev2.com/jobs-at-piepho/
      I've deactivated all plugins to see if there was a conflict, and there does not seem to be one, as the accordion selector problem persists even with plugins off. 
      Can you please tell me how to fix this so the "accordion set to show" selector works again?
      Thanks,
      Bruce
    • respectgb
      By respectgb+
      Hi,
      I'm having problems with bootstrap popovers being cut off the edge of the browser. I'm using the latest version of dms (2.2) and this problem occurs on all browsers tested. Please can you let me know how we can fix this?

      Cheers

×