MaxButtons – how to add button to header image?
-
Hi,
Love your button maker, best plugin I’ve found in a while – very easy and lots of info on your forums.
I’ve looked at the other requests for buttons in a header, but neither really worked for me, so I’d really appreciate your advice.
What I’m after is a button that sits on top of the bottom right of my header image in the 2012 banner area… I’ve got a child theme already and have tried adding the button short-code to my child header.php file in a couple of places. The short-code in the header.php currently looks like this:
<?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="100%"<?php echo get_custom_header()->width; ?>" height="100%"<?php echo get_custom_header()->height; ?>" alt="" /></a> <?php echo do_shortcode('[maxbutton id="1"]'); ?> <?php endif; ?>
which at least sits it to the right, now I’ve put it back in a container and right-aligned it.
I think the problem is that I’m not using the site title or description area AND I’ve moved the main navigation to below the image… perhaps this may be impossible, trying to sit it over an image??
Would really appreciate any help. Many thanks.
- The topic ‘MaxButtons – how to add button to header image?’ is closed to new replies.