Archived

This topic is now archived and is closed to further replies.

  • 0

attribute size="" in shortcode labels & badges

Question

Posted · Report post

Is there an easy way to be able to add the attribute size="" in shortcode labels & badges?

I don't really want to create custom css because it will impact all labels & badges and I just have a need for 1 particular page.

 

Am not stuck, just curious and lazy.

If the answer is no, then please consider this request as an add-on for your next upgrade.

 

Thank you.

 

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Hi sgendry

 

I believe that you can add a CSS code only for a page to solution the problem.

 

So, something like .page-id-2341 .YOUR DIV {YOUR CSS CODE;}

 

If you also wish to know how I find the page ID, all you need to do is load up FireBug or Google Chromes web dev tool and inspect your page html, at the top you should see body which has a number of classes assigned to it, one of these is page-id-XX (replace XX with your pages id value. I have added a Danny´s screenshot to assist you.

 

http://screencast.com/t/HOsjhjnUIYX 

Share this post


Link to post
Share on other sites

Posted · Report post

Your guidance is much appreciated. Thank you!

Share this post


Link to post
Share on other sites

Posted · Report post

As far as I am aware (could be wrong) Bootstrap labels/badges don't allow the attribute size, if this is the case either do we. Therefore, you will need to use custom CSS for that specific page.

Share this post


Link to post
Share on other sites