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" VC Element blows up on mobile when url added

vc button
    • 7 years, 8 months ago mhhaug
      Participant

      Expired

      The button VS element seems to blow up on mobile view when I add a destination url. It doesn’t have the issue without a destination url.

      Example here with url: https://financemyproject.com/

       

      Example here without url: https://financemyproject.com/kitchen-remodel-financing/

      Also, why does it say my account is expired when I just paid for 6 months of support?

       

      Thank you,
      Matt

       

    • 7 years, 8 months ago Mirela
      Participant

      Hello,

      Please add this code into your custom css box:

      @media (max-width: 480px) {
      .vc_btn3.vc_btn3-block {
          display: -webkit-box !important;
      }
      }

      Let us know.

      Best regards!

    • 7 years, 8 months ago mhhaug
      Participant

      Expired

      Hi Mihaila,

      Thank you for your reply but this isn’t really a fix. The button still blows up at certain page widths and then is not displayed properly when in mobile. Why is it that it scales properly without a url, but when a url is added it is different?

       

    • 7 years, 8 months ago Mirela
      Participant

      Hello,

      That is because the css classes are not the same with and without a link. Without a link, only the button class is present. When you set up an url, the <a> tag is added and along with it the link css attributes.
      This screenshot show it: https://postimg.org/image/n2to50ct7/

      I added the edited code the above to the page’s custom css box:

      @media (max-width: 979px) {
      .vc_btn3.vc_btn3-block {
          display: -webkit-box !important;
      }
      }

      The media width is changed to at least 979px, so it covers a wider range of responsive layouts. Please clear cache and check your page.

      Let us know.

      Best regards!

    • 7 years, 8 months ago mhhaug
      Participant

      Expired

      Hi Mihaila,

      Your fix is better but still not the best. Now when the button is in mobile, the button text is off center. This seems like something that should be fixed within the theme. The purpose of a button is to link to something, and the theme as it is, distorts buttons when a link is added. Can this be fixed instead of just patched with code that renders subpar results?

    • 7 years, 8 months ago Mirela
      Participant

      Hello,

      This is styling so it will be css. The code i send you, while being added in the Custom Css box, it is safe from future theme updates.
      We will certainly check this out for the next theme update, but every change will still be a css code, this time added in the style.css file instead of Custom css box.

      So to arrange the text alignment, please add this css too:

      .vc_btn3.vc_btn3-size-lg {
          padding: 18px 82px !important;
      }

      Result code:

      @media (max-width: 979px) {
      .vc_btn3.vc_btn3-block {  display: -webkit-box !important;}
      .vc_btn3.vc_btn3-size-lg {   padding: 18px 82px !important;}
      }

      And this the result screenshot: https://postimg.org/image/aaz08gukr/
      Let us know.

      Best regards!

    • 7 years, 8 months ago mhhaug
      Participant

      Expired

      Hi Mihaila,

      Thank you for the additional code. It solves the issue in mobile but has varying effects on the button while it is scaling down. This is fine in the meantime but definitely something that needs to be solved on a higher level so that the buttons scale down properly and look good like they do when there is no link.

    • 7 years, 8 months ago Mirela
      Participant

      Hello,

      I have already notified the developers. We will take a closer look on it for the upcoming theme update and improve the mobile experience of the button.

      Thank you for noticing it and letting us know. Please let me know if there is anything else i can do for you for the moment being.

      Best regards!

Viewing 7 reply threads

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