Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Applying Custom CSS to a Page (http://forum.bytesforall.com/showthread.php?t=23134)

bda Apr 1, 2015 11:33 AM

Applying Custom CSS to a Page
 
I'm using the WP Custom CSS plugin. I have added custom styles for H1, H2, TD and they work just fine.

Here's my challenge: I have some text on the Home Page that needs to be styled differently than the standard <P>. I 've defined it in the custom CSS, but I can' find no way of adding the style to selected text except to use the Text view when I edit a page and manually type in the style information. Is there any other way of applying a style other than manually.

When I open the Paragraph drop-down, the only styles that I see are the built-in ones like Heading 1, Heading 2, etc.

Ultimately this site will be turned over to staff members who need to be able to update the text referenced above easily - I don't see them manually typing in style names in the Text view.

Any help will be gratefully accepted along with any recommendations for alternative plugins that might work better in my situation.

juggledad Apr 1, 2015 03:58 PM

If you were to code some CSS like this
HTML Code:

p {color: blue;}
all the html elements that have a <p> would be effected. For example, in this case all teh text would be blue
HTML Code:

<p>blah blah blah</p>
<p>more blah blah blah</p>
<p>even more blah blah blah</p>

Now lets say you want to hace teh second line red you woul d have to have an id or class as part of the <p> so you could identify it, like this
HTML Code:

<p>blah blah blah</p>
<p class="mycolor">more blah blah blah</p>
<p>even more blah blah blah</p>

with the css above, it would still be blue so you would have to have something like this
HTML Code:

p {color: blue;}
p.mycolor {color: red;}

now the first and last line would be blue and the middle line would be red.

You might want to look at a text editing plugin - do a google searchwith 'wordpress text editing plugin' and try some and see which does it for you (and the people you will be turning it over to.)


All times are GMT -6. The time now is 07:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.