This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Turn off Responsive in Vantage Premium

Resolved 12 replies premiumthemetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

12
  1. Greg Priday Staff 11 years, 8 months ago

    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. Kate McLachlan 11 years, 8 months ago

    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

    • Greg Priday Staff 11 years, 8 months ago

      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/

    • Greg Priday Staff 11 years, 8 months ago

      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. Kate McLachlan 11 years, 8 months ago

    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. Andrew Misplon Staff 11 years, 8 months ago

    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. Kate McLachlan 11 years, 8 months ago

    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. Kate McLachlan 11 years, 8 months ago

    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. Kate McLachlan 11 years, 8 months ago

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

    Cheers,
    Kate

  8. Andrew Misplon Staff 11 years, 8 months ago

    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. Kate McLachlan 11 years, 8 months ago

    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. Andrew Misplon Staff 11 years, 8 months ago

    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.

Have a different question or issue?

Start New Thread