Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author jp2112

    (@jp2112)

    1. To call the button in your PHP code, you need two things: an action hook, and the call to the button function. There is an example in the documentation:

    add_action('the_content', 'show_css3_button');
    function show_css3_button($content) {
      if (is_page('home')) { // we are on a page with slug 'home'
        if (function_exists('scss3button')) { // plugin is installed/active
          $content .= scss3button(array('cssclass' => 'scss3b-button-rss',
    'href' => 'https://www.google.com/'),
    'Click here');
        }
      }
      return $content;
    }

    The hook will change depending on where and when you want to display the button. Also, the code will change slightly depending on the hook. When you hook ‘the_content’, you have to pass in the_content as a parameter and return it. Other times, you may simply echo the button.

    2. You can, the demo page that you linked to shows this behavior.

    3. The buttons are not responsive. Let me see what I can do.

    Plugin Author jp2112

    (@jp2112)

    I made some adjustments and the buttons should be responsive. Look for a CSS update in the next version.

    Thread Starter befree22

    (@befree22)

    I appreciate your willingness to keep up with technology and make the plugin responsive. Some plugin authors don’t even bother to reply or maintain their plugins.

    1. Will the php function call code be added to the update?
    2. Will I can display buttons side by side in the header?

    Awaiting a reply

    Plugin Author jp2112

    (@jp2112)

    1. The plugin has always had the ability to be called from PHP. Check out the FAQ for sample code. Also, the plugin settings page has sample PHP code on it, on the Parameters tab.

    2. Yes, you can see it on my demo page (check the FAQ for link).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Are these css3 buttons responsive?’ is closed to new replies.