Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Place a custom element (any text) somewhere on the home page (http://forum.bytesforall.com/showthread.php?t=16366)

jrobie23 Dec 29, 2011 04:21 PM

Place a custom element (any text) somewhere on the home page
 
I know this seems insanely simple, but i'm stumped.

I create a div with some text in it and gave it an id, then added this to the index.php
<?php if (is_front_page())echo '<div id="slidernav">This is some text</div>'; ?>

which works fine.... The text shows up, but I cannot attribute any css to it.

What I cannot seem to do is modify that div.

in my css inserts I have:

#slidernav{
...... css stuff
}

What am i missing??

Does ATA not allow custom elements? (that's likely not the right word).

For example, if I just wanted a red box to appear on the site at some "absolute position".... how could I do that??

http://jacksonnhrealestate.com/

For what it's worth, this all started because my client wants a maroon bar (slightly opaque) across the bottom of the slider with their phone number in it..

What I'm trying to do here is basically replace the solid bar I have in there now (which is just a border)....

juggledad Dec 29, 2011 06:01 PM

why do you have a */ before it?

lmilesw Dec 30, 2011 07:35 AM

To absolutely position an element the containing element must have a assigned position. So if you want to absolutely position #slidernav you should put position:relative on #container or #wrapper.

Also the CSS for opacity will affect all of #slidernav so the text will have more opacity as well.

jrobie23 Dec 30, 2011 11:54 AM

the "*/" is likely the closing comment from the above css rule. (is that where you saw that?)

I'm not sure that my container or wrapper has an assigned position, so I'll check that. I have just been unable to assign ANY css to that thing. I'm getting the sense now that i'll just need to do a bit more reading on css... Thanks for your input gentlemen!

juggledad Dec 30, 2011 12:40 PM

I think he commented CSS is causing the css for that element not to apply. As a test, move it up to the top


All times are GMT -6. The time now is 09:05 PM.

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