Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
I want to place a button on my WP Blog.
Old 02-23-2008, 01:24 PM I want to place a button on my WP Blog.
Novice Talker

Posts: 6
Name: Doug Clayton
Location: Michigan
Trades: 0
Hi all. I am very new to web design...etc. I want to place a button on my blog, with a picture (.jpg). I'm using Word Press for my Blog. I believe WP uses PHP, but not sure. Any advice would be great.
Thanks a Million
Doug-
www.moviesbooksfood.com
__________________
Doug-

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
doug6066 is offline
Reply With Quote
View Public Profile Visit doug6066's homepage!
 
 
Register now for full access!
Old 02-23-2008, 01:33 PM Re: I want to place a button on my WP Blog.
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
Hi Doug,
Where do you want this button placed? In the template somewhere or just in a post?
Also what type of button? Is it javascript or just a simple <a href> with an image?
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 02-23-2008, 07:52 PM Re: I want to place a button on my WP Blog.
Novice Talker

Posts: 6
Name: Doug Clayton
Location: Michigan
Trades: 0
Hi Cheez-Head,
Thanks for the reply. I want the button to be on the main page just under (or on) the header. I want the button to open a page so my subscribers can post their own news or ideas. I don't know what a <a href> means, but I would probally choose the easier of the two. Cheez, please take pitty on me, for I'm a die hard Lions fan, so that must tell you I need help.
Thanks, Doug
__________________
Doug-

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
doug6066 is offline
Reply With Quote
View Public Profile Visit doug6066's homepage!
 
Old 02-24-2008, 12:52 AM Re: I want to place a button on my WP Blog.
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
You're using the ProSense theme, which doesn't leave much room under the header.
I would suggest putting the image next the RSS icon on the right.

If, for example, you decided to place the image link next to the RSS icon on the right,
you would need to open the header.php file - located in the ProSense theme folder.

Find the following code in the file mentioned above...
Code:
<div id="header_right">
    <div id="subscribe">
        <a rel="nofollow" href="<?php bloginfo('rss_url'); ?>" title="Subscribe to RSS feed" rel="nofollow"><img src="<?php bloginfo('template_url'); ?>/images/rss-feed-icon.jpg" alt="Subscribe to RSS feed" /></a>
    </div>
</div>
You would then need to add a link like the one below...
Code:
<a href="http://WWW.YOUR-URL.COM" title=" "><img src="YOUR-IMG.JPG" alt=" " /></a>
The modified code should now look like this...
Code:
<div id="header_right">
    <div id="subscribe">
        <a href="http://WWW.YOUR-URL.COM" title=" "><img src="YOUR-IMG.JPG" alt=" " /></a>
        <a rel="nofollow" href="<?php bloginfo('rss_url'); ?>" title="Subscribe to RSS feed" rel="nofollow"><img src="<?php bloginfo('template_url'); ?>/images/rss-feed-icon.jpg" alt="Subscribe to RSS feed" /></a>
    </div>
</div>
Obviously, you would need to change "WWW.YOUR-URL.COM" and "YOUR-IMG.JPG"
to the actual names.

This is the simple way. Let me know if you have any questions.
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 02-24-2008, 02:30 PM Re: I want to place a button on my WP Blog.
Novice Talker

Posts: 6
Name: Doug Clayton
Location: Michigan
Trades: 0
Thanks a million Lance. I hope Farve sticks around for another season. I'll let you know how it goes.
__________________
Doug-

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
doug6066 is offline
Reply With Quote
View Public Profile Visit doug6066's homepage!
 
Old 02-27-2008, 07:56 PM Re: I want to place a button on my WP Blog.
Novice Talker

Posts: 6
Name: Doug Clayton
Location: Michigan
Trades: 0
Hey Lance-
On that button, I followed your lead and see how it works (sorta). If you don't mind I have a few more questions. Where do I upload my pic for my button to? And how do I make it link to a new page?

I copied your code, placed it where you said, now I see a place where the button will go, just no pic, and it links to a page that isn't there (yet). I'm sure your busy, but any (more) help would be great.
Thanks,
Doug-
__________________
Doug-

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
doug6066 is offline
Reply With Quote
View Public Profile Visit doug6066's homepage!
 
Old 02-27-2008, 08:59 PM Re: I want to place a button on my WP Blog.
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
Hey Doug,
You should place the image in the root folder or in the image folder. Actually, you can
place it anywhere you want, just make sure the img tag in the link is pointing to it.

For example...
If you put button.gif in the root folder, the link will be...
Quote:
<a href="http://www.movies-books-food.com" title=" "><img src="button.gif" alt=" " /></a>
But if you put it in the images folder, which is located in the wp-includes directory...
Quote:
<a href="http://www.movies-books-food.com" title=" "><img src="wp-includes/images/button.gif" alt=" " /></a>
...and yes, the page has to exist before you can link to it.
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Reply     « Reply to I want to place a button on my WP Blog.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31360 seconds with 12 queries