Title: Add maxbutton in header
Last modified: August 21, 2016

---

# Add maxbutton in header

 *  Resolved [BHGdesigns](https://wordpress.org/support/users/bhgdesigns/)
 * (@bhgdesigns)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/)
 * I would like to have a maxbutton at the top of my page centered between my logo
   and the header image.
    my page is at wtgn.org
 * Here is the code I have tried:
 * Header php
 *  <php echo do_shortcode(‘[maxbutton id=”38″]’); ?>
 * I located this under the line that reads:
    <title><?php wp_title( ‘|’, true, ‘
   right’ ); bloginfo( ‘name’ ); ?></title>
 * CSS:
 * logo {
    position: relative; }
 * .maxbutton-38,{
    position: absolute !important; top: 0; }
 * .maxbutton-38 {
    right: 0; }
 * I know that I have to work on the location yet, but at this point just trying
   to get the button to show up.
 * Thanks for your help
 * [http://wordpress.org/plugins/maxbuttons/](http://wordpress.org/plugins/maxbuttons/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * (@johnbhartley)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4321996)
 * So at this point it’s not showing up at all?
 *  Thread Starter [BHGdesigns](https://wordpress.org/support/users/bhgdesigns/)
 * (@bhgdesigns)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4321997)
 * Thanks so much for getting back with me.
 * Unfortunately my button is not showing up at all. For now I am using a menu at
   the top of my page instead of the button, but this is not what is desired. I 
   would like to be able to display a button between my logo on the left and the
   header image on the right.
    [](http://witnessingthegoodnews.org/)
 *  Plugin Author [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * (@johnbhartley)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322007)
 * Make sure you’ve place it below the </head> in your code.
 * `<title>`
 * Is for header data and doesn’t actually show on your page. Look for something
   like:
 * `<div id="header">`
 *  Thread Starter [BHGdesigns](https://wordpress.org/support/users/bhgdesigns/)
 * (@bhgdesigns)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322008)
 * I did have it before </head>
    I have moved it after the <div id=”header”> but
   it still does not work, any other ideas?
 *  Plugin Author [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * (@johnbhartley)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322009)
 * Can you post the full surrounding code so I can give a better answer of where
   exactly to place the code?
 *  Thread Starter [BHGdesigns](https://wordpress.org/support/users/bhgdesigns/)
 * (@bhgdesigns)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322023)
 * Here is the first part of the Header.php
 *     ```
       <!DOCTYPE html>
   
       <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
       	<head profile="http://gmpg.org/xfn/11">
       		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
       		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
       		<?php do_action('favicon') ?>
   
       		<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
   
       		<?php do_action( 'bp_head' ) ?>
       		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
       		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
   
       		<?php wp_head(); ?>
       	</head>
   
       	<body <?php body_class() ?> id="cc">
        <div id="outerrim">
   
        	<?php do_action( 'bp_before_header' ) ?>
   
       	<div id="header">	
   
       <php echo do_shortcode('[maxbutton id="38"]'); ?>
   
           	<?php wp_nav_menu( array( 'container_class' => 'menu menu-top', 'theme_location' => 'menu_top','container' => 'div', 'fallback_cb' => false ) ); ?>
               <div class="row-fluid header-widgets">
                   <div class="span12">
                       <?php if( ! dynamic_sidebar( 'headerfullwidth' )) :?>
                       <?php endif; ?>
                   </div>
       ```
   
 *  Plugin Author [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * (@johnbhartley)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322025)
 * You’re missing the first ? in the php call. You have:
 * `<php echo do_shortcode('[maxbutton id="38"]'); ?>`
 * but should have:
 * `<?php echo do_shortcode('[maxbutton id="38"]'); ?>`
 * Easy enough to miss, hopefully that resolves the issue of not being able to see
   it.
 *  Thread Starter [BHGdesigns](https://wordpress.org/support/users/bhgdesigns/)
 * (@bhgdesigns)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322027)
 * Thanks so much for catching my mistake and all your time to help me. As a newbie
   I am very appreciative.
 *  Plugin Author [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * (@johnbhartley)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322029)
 * Not a problem, happy to help. I’m going to mark this as resolved, but if something
   else comes up feel free to let me know.
 *  Thread Starter [BHGdesigns](https://wordpress.org/support/users/bhgdesigns/)
 * (@bhgdesigns)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322036)
 * I am quite confused as to what is going on. We fixed the original problem, the
   button is right where I want it. Now the problem is, I want to change the link
   for the button and I am not able to make any changes. When I change the url it
   is linked to and then hit save it reverts back to what it was originally. So 
   I tried the copy option, this does not copy the button. So I tried creating a
   new button and it wont save. Any ideas?
 *  Thread Starter [BHGdesigns](https://wordpress.org/support/users/bhgdesigns/)
 * (@bhgdesigns)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322037)
 * I deactivated the plugin and reactivated it – now it works! PTL!
 *  [billabianca](https://wordpress.org/support/users/billabianca/)
 * (@billabianca)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322092)
 * Hi, I am new at WordPress and tried every possible thing that WordPress support
   has given me.
    I want to add a button on the right side in my header. If someone
   knows where exactly to place it, please help!?
 * This is my page: [http://focusedfitness.co.za/](http://focusedfitness.co.za/)
   
   and the button is either: [button size=”normal” type=”warning” value=”Sign up
   for our services” href=”[http://focusedfitness.co.za/sign-up-for-our-services-2/”%5D](http://focusedfitness.co.za/sign-up-for-our-services-2/”%5D)
   or: [maxbutton id=”1″]
 * I tried placing it under my theme options in “Ads”
    aswell as trying to copy 
   it into every possible spot in my Editor. I also tried adding it everywhere like
   this: <?php echo do_shortcode(‘[maxbutton id=”1″]’); ?>
 * I would appreciate any help or tips regarding this.
    Thanks in advance!!!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Add maxbutton in header’ is closed to new replies.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [billabianca](https://wordpress.org/support/users/billabianca/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/add-maxbutton-in-header/#post-4322092)
 * Status: resolved