Link to home
Start Free TrialLog in
Avatar of jonathanduane2010
jonathanduane2010

asked on

How do I put a button on a the header

Hi,

I want to put a button on the header.

How can I do it.

This is the site: http://mylittlewhitelies.com/

Password for the site is: MediaCentralPassword

Please help me out.

Thanks.
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

What is the problem?

What is preventing you from putting a button in the header?
<header>
    ....
    <button>My Button</button>
   ...
</header>

Open in new window

Avatar of jonathanduane2010
jonathanduane2010

ASKER

Its a wordpress site and I am not really sure, where to put the code
If you are not sure where to add button, you can append a button on runtime using jQuery.
What is purpose?

In wordpress it might be in index-main.php or index.php. You can go through each files in themes > editor in dashboard. On right extreme end all editable php files will be listed.

You can corelate the content with classname/idnames in html source of current site. You will get some clue regarding that.
What must the button do?
It will redirect to the below contact form.

It will work same as the "Enter the Competition" button which is there on the site
$(function() {
   $(".header_mid_inner").append("<a href="http://mylittlewhitelies.com/#contact" class="cmsms_button"><span>Contact Us</span></a>");
});
where should I put this code? I mean, in which file?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of sajayj2009
sajayj2009

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial