Jump to content


Photo
- - - - -

attribute size="" in shortcode labels & badges


  • Please log in to reply
3 replies to this topic

#1 sgendry

sgendry

    Advanced Member

  • Members
  • 79 posts
  • Country: Country Flag

Posted 26 May 2013 - 12:43 AM

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.

 



#2 batman

batman

    Bat Learning

  • Members

  • 2203 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 26 May 2013 - 01:42 AM

Hi sgendry

 

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

 

So, something like

Please Login or Register to see this Hidden Content

.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.

 

Please Login or Register to see this Hidden Content

 



#3 sgendry

sgendry

    Advanced Member

  • Members
  • 79 posts
  • Country: Country Flag

Posted 31 May 2013 - 07:40 AM

Your guidance is much appreciated. Thank you!



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 17666 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 31 May 2013 - 12:26 PM

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.