• I recently activated a new theme and my buttons from the current theme no longer work. [button link=”/inspections-form/”]Schedule an Inspection Today[/button] How do I get this form to open up in a new page again and be shown as a button? Is there a different button code for this theme?

    Thanks for the help!

Viewing 1 replies (of 1 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi,

    free themes hosted on www.remarpro.com are not allowed to include custom shortcodes since it is considered as a plugin-territory functionality according to the latest guidelines. You will need to create a child theme and add the “button” shortcode through “functions.php”. Here is an example how the code can look:

    function happenstance_button_shortcode($atts, $content = null) {
       extract(shortcode_atts(array('link' => '#'), $atts));
       return '<a class="custom-button" href="'.$link.'">' . do_shortcode($content) . '</a>';
    }
    add_shortcode( 'button', 'happenstance_button_shortcode' );
    add_filter('widget_text', 'do_shortcode');

    Or you can use a shortcode plugin, for example the Shortcodes Ultimate. If you plan to frequently switch between various themes, it is the best solution, because shortcodes provided by a plugin are not dependent on any theme.

    Best regards,
    Tomas Toman

Viewing 1 replies (of 1 total)
  • The topic ‘Button Link’ is closed to new replies.