Home>Support>Turn off Responsive in Vantage Premium

Turn off Responsive in Vantage Premium

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello,

Is it possible to turn off responsive for individual pages in Vantage? I am using Vantage Premium. I don’t want to turn responsive off for the whole site, just selected pages.

Thanks,
Kate

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 11 years, 1 month ago Greg Priday
    Hi, I Work Here

    Hi Kate

    There’s no way to do this in the admin itself, but you can do it with a little PHP code. You should add this to a child theme’s functions.php. If you’re not comfortable with editing PHP, then you might want to hire someone to this for you, it is possible to break things.

    At very least, make sure you test out the changes on a local server.

    /**
     * Change the responsive setting to false on certain pages
     *
     * @param $val
     *
     * @return bool
     */
    function vantage_child_per_page_responsive($val) {
    	$non_responsive_pages = array(
    		703, 701
    	);
    
    	global $post;
    	if( is_singular() && !empty($post) && in_array( $post->ID, $non_responsive_pages ) ) {
    		$val = false;
    	}
    
    	return $val;
    }
    add_filter('siteorigin_setting_layout_responsive', 'vantage_child_per_page_responsive');

    Here’s a guide to creating a child theme. http://codex.wordpress.org/Child_Themes

    The 2 numbers you see there are the IDs of the pages you don’t want to be responsive. This guide will help you with finding the IDs.

    http://www.wpbeginner.com/beginners-guide/how-to-find-post-category-tag-comments-or-user-id-in-wordpress/

  2. 11 years, 1 month ago Kate McLachlan

    Hi Greg,

    Thanks for your response. I am not experienced in PHP so might be something I have to get some help with.

    I have actually just managed to break my whole site with an attempt to edit PHP. I wanted to add the meta slider template include to the template so that it would display on all pages but I think I inserted it into the wrong PHP file (metaslider.php). I removed the template include and re-saved but now all I am getting is this error message:

    Parse error: syntax error, unexpected ‘<' in /home/newbolds/public_html/wp-content/themes/vantage/inc/metaslider.php on line 99

    I can't even open WordPress to edit the PHP. Do you know how I can fix it?

    Thank you for your help!
    Kate

    • 11 years, 1 month ago Greg Priday
      Hi, I Work Here

      To this these sorts of errors you’ll need to log into your servers FTP, then navigate to wp-content/themes/ and delete the vantage folder. Next, you’ll need to download and install Vantage premium from the ZIP file. You’ll be able to download this from your original order email.

      These instructions should help with installing the theme from a ZIP file. You basically need to follow the last paragraph.

      https://siteorigin.com/basics/updating-theme-from-zip/

    • 11 years, 1 month ago Greg Priday
      Hi, I Work Here

      I also remembered I wrote this guide on fixing fatal errors. I need to update it a little bit, but it might be of some help.

      https://siteorigin.com/troubleshooting-theme-issues/fatal-errors/

  3. 11 years, 1 month ago Kate McLachlan

    Hi Greg,

    Thank you so much for your quick response. I followed your instructions and the Parse error has been fixed.
    You offer amazing support – thank you!

    I have 2 more questions, not sure if I should start another thread?
    1. How can I add the meta slider to all of my pages?
    2. I am using the Black Studio TinyMCE Widget plugin that you recommend but I when I try to insert an image into a Visual Editor widget, the image doesn’t appear.

    Thanks again for your help. It is really appreciated.

    Cheers,
    Kate

  4. 11 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hi Kate

    On each page you’ll find a Meta Slider box in the right column. You can insert a Meta Slider into each page using that drop down menu.

    After inserting an image into Visual Editor can you see it when re-editing the widget? Is it still there? Also check the front end using your browser’s developer tool, is the img tag there?

    If you’re losing content, hitting save, then re-editing the widget and the image is gone, you might have a plugin conflict. In that event ensure no updates are pending at Dashboard > Updates, then temporarily disable all non-SiteOrigin plugins and re-check the issue.

    Ref: https://siteorigin.com/troubleshooting/identifying-plugin-conflicts/

  5. 11 years, 29 days ago Kate McLachlan

    Hi Andrew,

    Thanks for your help. I found the Meta Slider box – thanks!

    I can’t see the image at all in Visual Editor. When I go to “Add Media” and select an image nothing appears in the visual editor box. The only plugins I am running are PageBuilder, Site Origin Widget Bundle, Meta Slider and Black Studio TinyMCE Widget.

    Thanks,
    Kate

  6. 11 years, 29 days ago Kate McLachlan

    I just checked the front end – the img tag. Width and height are listed as “1” and I can see a tiny dot on the page. So it’s there but really small. Do you know how I could increase the size?
    Thanks!

  7. 11 years, 29 days ago Kate McLachlan

    I switched to HTML view in Visual Editor and adjusted the width and height in the code. That has worked.

    Cheers,
    Kate

  8. 11 years, 29 days ago Andrew Misplon
    Hi, I Work Here

    Hi Kate

    That shouldn’t be happening.

    When you Add Media in a page via the regular Visual tab and Add Media button does the same issue happen?

    If you’d like me to take a look please send a set of temporary login details and a reference to this thread to [email protected]

  9. 11 years, 27 days ago Kate McLachlan

    Hi Andrew,

    I tried Add Media via the regular Visual tab and the same thing happens. Image captions are also not displaying.

    I have created a temporary log in for you. I will email the details now.

    Thanks again for your help.
    Kate

  10. 11 years, 27 days ago Andrew Misplon
    Hi, I Work Here

    For sure, send ’em. Please can you include a link to this thread in the mail, I tend to lose track of what belongs to who without it. Thanks.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More