Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old Dec 29, 2011, 04:21 PM
jrobie23's Avatar
jrobie23
 
63 posts · Feb 2011
Boulder, CO
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)....
  #2  
Old Dec 29, 2011, 06:01 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
why do you have a */ before it?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 30, 2011, 07:35 AM
lmilesw's Avatar
lmilesw
 
10,176 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I think he commented CSS is causing the css for that element not to apply. As a test, move it up to the top
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 02:51 AM.


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