Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Choose2Win

    (@choose2win)

    Here is the code from my header php file:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <meta name=”viewport” content=”width=device-width” />
    <title><?php wp_title( ‘ | ‘, true, ‘right’ ); ?></title>
    <link rel=”stylesheet” type=”text/css” href=”<?php echo get_stylesheet_uri(); ?>” />
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <div id=”wrapper” class=”hfeed”>
    <header id=”header” role=”banner”>
    <section id=”branding”>
    <div id=”site-title”><?php if ( ! is_singular() ) { echo ‘<h1>’; } ?>” title=”<?php esc_attr_e( get_bloginfo( ‘name’ ), ‘blankslate’ ); ?>” rel=”home”><?php echo esc_html( get_bloginfo( ‘name’ ) ); ?><?php if ( ! is_singular() ) { echo ‘</h1>’; } ?></div>
    <div id=”site-description”><?php bloginfo( ‘description’ ); ?></div>
    </section>
    <nav id=”menu” role=”navigation”>
    <div id=”search”>
    <?php get_search_form(); ?>
    </div>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘main-menu’ ) ); ?>
    </nav>
    </header>
    <div id=”container”>

    If someone could show me what code to insert, and where, that would be extremely helpful.

    You could even copy the code from above, insert the code for me so I don’t screw it up lol and paste it as a response so I can just copy and paste 🙂 I appreciate the assistance and support of this forum.

    Thank You

    Plugin Author johnbhartley

    (@johnbhartley)

    You’d need to add a series of code like:

    <?php
       echo do_shortcode('[maxbutton id="1"]');
       echo do_shortcode('[maxbutton id="10"]');
       echo do_shortcode('[maxbutton id="2"]');
       echo do_shortcode('[maxbutton id="3"]');
       echo do_shortcode('[maxbutton id="4"]');
       echo do_shortcode('[maxbutton id="5"]');
       echo do_shortcode('[maxbutton id="8"]');
    ?>

    Thread Starter Choose2Win

    (@choose2win)

    Great Thanks John!

    Thread Starter Choose2Win

    (@choose2win)

    How about some positioning code lol, they all seem to stack on eachother 🙂

    Plugin Author johnbhartley

    (@johnbhartley)

    Try changing the “Alignment” option to something like display: inline-block. If that doesn’t work you can use some HTML table code to set it up the way you’d like.

    Thread Starter Choose2Win

    (@choose2win)

    YOU ARE AWESOME! Thanks for an amazing Plugin and thanks to you for giving awesome support 🙂

    Plugin Author johnbhartley

    (@johnbhartley)

    Not a problem. Feel free to let us know if you have further questions.

    Thread Starter Choose2Win

    (@choose2win)

    So, yes, one other little snaffu, do you know how to add even spacing between the buttons? and how to make the dimensions of the buttons the same, I mean thre is one button the perfect size, but that just happens to be because of the words on the button require that much space, so that would be the model button size I’d like to make the other 6 buttons the same size, and then seperate each block evenly, is there an easy uniform way to adjust these things? Thanks again for all the assistance

    choose2win.org

    Thread Starter Choose2Win

    (@choose2win)

    I am setting up the buttons in the header and everything seems to be going according to plan, I have tried several differnt ways to get my last button to be separated by 5 px like the rest of them but it wont budge… Does the “header” file not stretch all the way acroos the page, do I need to insert this code into another file if I want to keep inserting to the right?

    Please let me know.

    P.S.

    How can I change the size of the buttons to all be the same?

    Thanks again!

    Thread Starter Choose2Win

    (@choose2win)

    GOT IT thanks lol except the button sizes

    Plugin Author johnbhartley

    (@johnbhartley)

    Unfortunately there’s no way in the editor to make the buttons the same size. You could do it with MaxButtons Pro or you could try to adjust with setting a button width in CSS.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘MaxButtons In My Header PHP’ is closed to new replies.