Website Coding

Stuck on a line of code? Find resources and post your coding questions here.

Forum Sponsor (Advertise with us)
Reply
 
Thread Tools Display Modes
    #1 (permalink)  
Old 01-23-2010
kdbbiz's Avatar
New Member
Company name: KDB Business Services
 
Join Date: Jan 2010
Location: Cambridge, ON
Posts: 28
Default coding for adding button to site
I am using wordpress. I am not a tech dummy but still trying to reacquaint myself with my lost html education from like 15 years ago.

I created a button for my site. I uploaded to server and put into widget on my sidebar. The thing I can't figure out is how do I put the code into the instructions for others to copy for their own site without having the button populated onto my site again. This is hard to explain, I guess. I know when I go to other people's sites, they have buttons on their sites. Underneath are instructions and html or java code for you to copy and paste for your own site.

They must put it into some form of table or something to keep it just code and not to the image the code converts into when placing in a widget on your site. This is what I can't figure out. I want to provide the html for others to copy and use written underneath the actual button.

Does this make sense to anyone? I feel like I am blabbering!

thanks for the help!
Reply With Quote
    #2 (permalink)  
Old 01-23-2010
Business-Bytes's Avatar
Resident Member
Company name: SunRise Virtual Solutions
 
Join Date: Jun 2009
Location: Iowa
Posts: 1,043
Blog Entries: 1
Send a message via Skype™ to Business-Bytes
Default Re: coding for adding button to site
Melanie, do you have a link to what you're talking about? That would help a bunch.

Thanks!
__________________
Jules, SunRise Virtual Solutions - WordPress Customization & XHTML/CSS Web Sites
Reply With Quote
    #3 (permalink)  
Old 01-23-2010
kdbbiz's Avatar
New Member
Company name: KDB Business Services
 
Join Date: Jan 2010
Location: Cambridge, ON
Posts: 28
Default Re: coding for adding button to site
okay. we will try to explain this.

This is for my other moms work site, not my VA site. I haven't made badges/buttons for that site yet.

Here is mine. http://momsassistingmoms.net

in the sidebar one(left side), scroll down and you will see where I have my 2 badges which I wanted only 1 to show and the other to be the code only that others could copy and paste for their site.

I want it to be like this one here at this site. On the sidebar 2(right side),
she has her badge and then below has the text code part in a dotted box for people to copy and paste.

http://mommybloggerdirectory.com/node/add/listing

I would like to know the coding to put in my css to make that the way mine is. I have tried the table, an the boxed and neither work, so I obviously don't know the right one to use. I hate these kinds of projects because I feel so inept, and I know I am not.
Reply With Quote
    #4 (permalink)  
Old 01-23-2010
Business-Bytes's Avatar
Resident Member
Company name: SunRise Virtual Solutions
 
Join Date: Jun 2009
Location: Iowa
Posts: 1,043
Blog Entries: 1
Send a message via Skype™ to Business-Bytes
Default Re: coding for adding button to site
Hi Melanie,

For the code that shows on your site you need to use textarea. More info on textarea if you're interested. http://www.w3schools.com/TAGS/tag_textarea.asp

To make this simpler, I just copied the HTML code from the last link you gave:

<div class="content"> (not all code here, just pertinent section)
<p><img src="/sites/default/themes/mommy/images/125X125.png" /><br />
help us grow!<br />
<textarea class="link-me-textarea"><a href="http://mommybloggerdirectory.com" target="_blank"><img src="http://mommybloggerdirectory.com/sites/default/themes/mommy/images/125X125.png" border="0" /></a> </textarea></p>
</div>

In the HTML you need to find the div content area that this applies to e.g. in the example it is <div class="content">. Yours might not be a class, just something like <div id="somethinghere">.

You will need to set a textarea class as in the example <textarea class="link-me-textarea">. The textarea tag is what lets you put the code in there without showing an image.

Note the beginning <p> and ending </p> tags and the beginning <div>. The <textarea> and </textarea> beginning and ending tags. And make sure after adding any div's or classes that you add the appropriate ending </div> tags.

In your CSS file (example below is if you used a class - if a regular div, not div class, use a # before the named element [which I think you know ]) this is how she got the dashed box and set the parameters for her box. You can change settings to suit your needs.

textarea.link-me-textarea {
border: 1px dashed #51AED1;
font-size:8px;
overflow: hidden;
color: #EA7480;
background-color: #fff;
height:55px;
width: 170px;
margin-top: 5px;
}

textarea {
background-image: none;
}

I hope this helps and gets you going on this. Fun, eh?
__________________
Jules, SunRise Virtual Solutions - WordPress Customization & XHTML/CSS Web Sites
Reply With Quote
    #5 (permalink)  
Old 01-23-2010
executive_assist's Avatar
Active Member
Company name: List 2 Close Assistant
 
Join Date: Dec 2009
Location: Ohio
Posts: 582
Blog Entries: 7
Send a message via Skype™ to executive_assist
Default Re: coding for adding button to site
There is a website, www.mybannermaker.com that allows people to make widgets with the code like you are talking about for their websites. The fans just click on the code to copy and paste to their own websites/ socialnetworking sites, etc. Is this what you are talking about? I do know you can customize the size you are wanting and everything, so I hope this will help you.
Reply With Quote
    #6 (permalink)  
Old 01-23-2010
kdbbiz's Avatar
New Member
Company name: KDB Business Services
 
Join Date: Jan 2010
Location: Cambridge, ON
Posts: 28
Default Re: coding for adding button to site
And just when I was beginning to think I was getting all this! LOL. This will take me awhile to absorb but I think I get it.

thank you for your time and trouble Jules.
Reply With Quote
    #7 (permalink)  
Old 01-23-2010
kdbbiz's Avatar
New Member
Company name: KDB Business Services
 
Join Date: Jan 2010
Location: Cambridge, ON
Posts: 28
Default Re: coding for adding button to site
Serita,

I will check into the link you gave me. thank you. If I can upload my own graphic, it may be helpful.
Reply With Quote
    #8 (permalink)  
Old 01-23-2010
executive_assist's Avatar
Active Member
Company name: List 2 Close Assistant
 
Join Date: Dec 2009
Location: Ohio
Posts: 582
Blog Entries: 7
Send a message via Skype™ to executive_assist
Default Re: coding for adding button to site
yeah, you can upload your own graphics. I just don't know if it will be small enough.
Reply With Quote
    #9 (permalink)  
Old 01-23-2010
kdbbiz's Avatar
New Member
Company name: KDB Business Services
 
Join Date: Jan 2010
Location: Cambridge, ON
Posts: 28
Default Re: coding for adding button to site
yeah, i just tried it out and my graphic is already 125 by 125 which is typical button size but they wanted me to crop so much that I ended up with almost just an eyeball, so that won't work.

Not sure what's up with that...
Reply With Quote
    #10 (permalink)  
Old 01-23-2010
kdbbiz's Avatar
New Member
Company name: KDB Business Services
 
Join Date: Jan 2010
Location: Cambridge, ON
Posts: 28
Default Re: coding for adding button to site
Jules!

I did it!!!! Thanks so much for the help! I would have never figured that out if I didn't have your direction. Not sure if I have a specialty over anything you can do, but if I can help you in any way, let me know.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding documents to Wordpress blog/site - "Dear Christina" Blog VAF Newsbot General Website Design and Development 0 12-10-2009 09:40 AM
[Question] Twitter contact button... ShanteM General Website Design and Development 5 04-20-2009 02:22 PM
[Question] Problem adding Skype custom button to Outlook 07 signature dognose Software for Small Business 3 04-04-2009 12:04 PM
Adding a blog to a yahoo small business account with site builder... candctroll Blogging 10 05-15-2008 11:31 AM


All times are GMT -4. The time now is 11:14 AM.

International Virtual Assistants Association
Project Management for Virtual Assistants
Work from Home | Become A Virtual Assistant
Virtual Assistant Directory
Affordable Logo Design
Virtual Assistant Contracts
Virtual Assistant Forums Advertising

© Virtual Assistant Forums 2012
All content and images are protected under copyright law and may not be reproduced in any way without express written consent.