Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Button link open in new tab

buttonsvcvisual composer button
    • 9 years, 3 months ago germelon
      Participant

      Expired

      Hello, awesome support team!
      I need your help.

      I want to add setting for buttom 

      Specular Button

      I can’t add to button’s link target=”_blank” or download attribute

      —  for pages which have to open in new tab

        — for initialisation files donwload.

       like as vc-button-2 (<span style=”color: #9d8967; font-family: ‘Open Sans’, sans-serif; font-size: 12px; line-height: 18px; background-color: #fff4e2;”>it is deprecated since version 4.5. </span>) or ()

       

      Please give me code and say what files I have to edit for this function.
      Or add it in next update — it’s easely then everytime find copy-paste link.

      Sorry for my English. I am ashamed.

       

    • 9 years, 3 months ago Mirela
      Participant

      Hello,

      You must have an old version of Visual Composer as the Button 2 does not longer have that name and the ‘Open in new tab’ attribute.
      I have notified the developer team regarding it, but i still can not tell for sure if this will be added in future theme update.
      If you want to open button in new tab, for the first button go to file vc_templates/button.php and find this line:

      $output .= '<a class="btn-bt align-'.esc_attr($align).' '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($link).'"><span>'.esc_attr($title).'</span><i class="'.esc_attr($icon).'"></i></a>';
          if($button_bool =='yes'):
          	$output .='<a class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($button_2_link).'"><span>'.esc_attr($button_2_title).'</span><i class="'.esc_attr($icon).'"></i></a>';
          endif;
      

      Replace with this:

      $output .= '<a target="_blank" class="btn-bt align-'.esc_attr($align).' '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($link).'"><span>'.esc_attr($title).'</span><i class="'.esc_attr($icon).'"></i></a>';
          if($button_bool =='yes'):
          	$output .='<a target="_blank" class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($button_2_link).'"><span>'.esc_attr($button_2_title).'</span><i class="'.esc_attr($icon).'"></i></a>';
          endif;
      

      Save file.

      Best regards!

      • This reply was modified 9 years, 3 months ago by Mirela.
Viewing 1 reply thread

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password