• Nice plugin. I’d like to make your button display dropdown menu. I made a button myself but I like your CSS better.

    self made button:

    <div class="btn-group">
                <button type="button" data-toggle="dropdown" class="btn btn-success dropdown-toggle">Lae ülesse</button>
                <ul class="dropdown-menu">
                    <li><a href="#">Anekdoot</a></li>
                    <li><a href="#">Pilt</a></li>
                    <li><a href="#">Video</a></li>
                </ul>
            </div>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

    Thank you so much and merry xmas
    https://www.ads-software.com/plugins/maxbuttons/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pisang20

    (@pisang20)

    I understand that i need to add this code somewhere in your plugin?:

    <ul class="dropdown-menu">
                    <li><a href="#">Anekdoot</a></li>
                    <li><a href="#">Pilt</a></li>
                    <li><a href="#">Video</a></li>
                </ul>
            </div>
    Plugin Author johnbhartley

    (@johnbhartley)

    To start, you only need to link to one of those bootstrap stylesheets (preferably the .min version).

    Because you are using Bootstrap to get the style and functionality of the dropdown (I’m assuming) it may take some adjustments. BUT, you could copy the button CSS and paste it into your CSS but swap out the selectors and classes to make it specific to .btn-group .dropdown-toggle

    Does that make sense? If not I can write a longer answer.

    Thread Starter pisang20

    (@pisang20)

    somewhat understood but still not able to make the button dropdown and link menu items to modal box

    Plugin Author johnbhartley

    (@johnbhartley)

    You’ll have to write your own HTML for this I think and just use the maxbutton html just as it would be output if you were using the shortcode, then use the MaxButtons CSS. It’s a bit outside of the standard MaxButtons functionality which is the only reason I suggest it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘dropdown button’ is closed to new replies.