• Resolved BHGdesigns

    (@bhgdesigns)


    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/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author johnbhartley

    (@johnbhartley)

    So at this point it’s not showing up at all?

    Thread Starter BHGdesigns

    (@bhgdesigns)

    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.

    Plugin Author johnbhartley

    (@johnbhartley)

    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

    (@bhgdesigns)

    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

    (@johnbhartley)

    Can you post the full surrounding code so I can give a better answer of where exactly to place the code?

    Thread Starter BHGdesigns

    (@bhgdesigns)

    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

    (@johnbhartley)

    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

    (@bhgdesigns)

    Thanks so much for catching my mistake and all your time to help me. As a newbie I am very appreciative.

    Plugin Author johnbhartley

    (@johnbhartley)

    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

    (@bhgdesigns)

    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

    (@bhgdesigns)

    I deactivated the plugin and reactivated it – now it works! PTL!

    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/
    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
    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.