Jump to content
sgendry

attribute size="" in shortcode labels & badges

Recommended Posts

sgendry

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
batman

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 


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
sgendry

Your guidance is much appreciated. Thank you!

Share this post


Link to post
Share on other sites
Danny

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.


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


×