Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Place a custom element (any text) somewhere on the home page


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 29, 2011, 04:21 PM
jrobie23's Avatar
jrobie23
 
63 posts · Feb 2011
Boulder, CO
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)....
  #2  
Old Dec 29, 2011, 06:01 PM
juggledad's Avatar
juggledad
 
21,937 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
why do you have a */ before it?
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Dec 30, 2011, 07:35 AM
lmilesw's Avatar
lmilesw
 
10,047 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #4  
Old Dec 30, 2011, 11:54 AM
jrobie23's Avatar
jrobie23
 
63 posts · Feb 2011
Boulder, CO
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!
  #5  
Old Dec 30, 2011, 12:40 PM
juggledad's Avatar
juggledad
 
21,937 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I think he commented CSS is causing the css for that element not to apply. As a test, move it up to the top
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to place a widget between posts on the home page sober Sidebars & Widgets 1 Oct 12, 2011 01:55 PM
Replace Menu & Make Custom Home Page jnucreative Page & Category Menu Bars 5 Jun 29, 2010 04:46 PM
Where to place nofollow code for home link? wardrob Header configuration & styling 3 Apr 12, 2010 09:32 AM
Wanting to place hoverable image for page menu button instead of text semraddesign Page & Category Menu Bars 0 Jan 30, 2010 04:25 PM
want to place clickable icons in place of links (Home, About, etc.) agrossman Header configuration & styling 2 Aug 13, 2009 02:45 PM


All times are GMT -6. The time now is 01:52 AM.


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