modifying the CSS
-
Hi
i have created a menu in the body of my page using ‘Shortcodes Ultimate’
I want to make changes such as color of text etc.to this menu using CSS.I have tried to copy some rules relating to color of text and pasting them into my style sheet but this is having no effect.
Maybe you can direct me in this.
Here is the link to my site:
http://colmohara.ie/wordpress/?page_id=6
Thanks
Jessy5000
-
You can add the styles you want to the custom CSS box in the plugin settings. The best way to do this is to specify a new class for your custom version, and place that in the Class box (or add class=”class-name” to your shortcode in the editor). Then you can call to just that custom type.
Here’s an example:
On your page:
[su_heading class="su-heading-green"]This is a header with green text[/su_heading]
In your Shortcodes Ultimate settings > Custom CSS tab:.su-heading-green { border-top: 1px solid #0d5412; border-bottom: 1px solid #0d5412; color: #33662e; font-weight: bold; } .su-heading-green.su-heading-inner { border-top: 4px solid #538256; border-bottom: 4px solid #538256; }Notice that I handled two elements, which is because the shortcode creates:
<div class="su-heading su-heading-style-default su-heading-align-center su-heading-green" style="font-size:13px;margin-bottom:20px"> <div class="su-heading-inner">This is a header with green text</div> </div>The double lines were created by a top/bottom border on both the main element and the inner element, so I accounted for both…and made the font bold just because.
The topic ‘modifying the CSS’ is closed to new replies.