Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Add property in index.php (http://forum.bytesforall.com/showthread.php?t=5469)

miseroprospero Jan 24, 2010 05:33 AM

[SOLVED] Add property in index.php
 
Hi everybody!!!
I'm trying to add a calendar icon besides the post title. It' supposed I should add this:

<div class="the_date"><span class="date_m"></span> <span class="date_d"></span></div>

before this:

<?php the_permalink(); ?>

in the index.php page, but there is nothing like that. Is there any other place?
Where should I work to add those instructions?

I found another thread talking about that, but unfortunately not solved....

Thanks in advanced!!!

pakacil Jan 30, 2010 12:58 AM

1 Attachment(s)
Quote:

Originally Posted by miseroprospero (Post 23627)
I'm trying to add a calendar icon besides the post title.

something like this ... (click to enlarge)
Attachment 370

this is what i tried
on Atahualpa Options, go to Post & Pages section
• go to Style POSTS & PAGES tab

i added this code to HEADLINE Box
PHP Code:

backgroundurl(http://localhost/wp/wp-content/themes/atahualpa/images/cal.jpg) no-repeat left center; 

note: i uploaded a calendar image to ..atahualpa/images directory before

then, make an arrangement of title position in HEADLINE Box: Text, like this
PHP Code:

padding0 0 0 45px

hope it works like you want...

miseroprospero Jan 30, 2010 04:01 AM

Thanks!!
I've done it, looks like it leave the space, but cannot see the image.
Uploaded and its with the others...

Try

pakacil Jan 30, 2010 04:34 AM

can you tell me your calendar image size and the custom background code that you added to HEADLINE Box?

if i'm not wrong...
you have 110 x 90 pixels image size, my recommendation is resize it to maximum 37 pixels (or less) height.
so it will be suitable for your title size.

be sure that the code in HEADLINE Box is...
PHP Code:

backgroundurl(http://www.miseroprospero.org/blog/wp-content/themes/atahualpa/images/date06.jpg) no-repeat left center; 

and be sure that the url must be refer to your image.

miseroprospero Jan 30, 2010 05:57 PM

1 Attachment(s)
Hi!
Looks like will be harder...
So, I tell u what I've done:

Resized the image to 33x27 pixel

Attachment 372

Uploaded to images (Atahualpa)

and:

http://img40.imageshack.us/img40/9041/83165761.jpg

and:

http://img25.imageshack.us/img25/2408/47860430.jpg

Maybe I should "allow" it appearance, from another place...

Thanks for your help!!

pakacil Jan 30, 2010 06:14 PM

I see the problem now, you just have to change the url of background image in your HEADLINE Box.

don't use that http://localhost/wp/... which i gave you first, because it's just for an example and that address is just my localhost or offline. I'm sorry, forgot to tell you about it.

you must use your blog address http://www.miseroprospero.org/blog/..., look at my 2nd comment, there you'll find a code

in other words:
simply change http://localhost/wp to http://www.miseroprospero.org/blog

miseroprospero Feb 1, 2010 07:11 AM

Oh my god...
I'm really stupid. Sorry.
Well, know it's ok. Dealing with sizes, margins, etc...
And to put the code in the right place, cause not working yet.
Thanks a lot for your help!!!


All times are GMT -6. The time now is 02:57 AM.

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