Category: FAQs

  • Basic Troubleshooting

    Basic Troubleshooting

    There are thousands of themes and other plugins out there. So while we try and be careful and build everything up to standards, sometimes things can go wrong.

    If you find that Page Builder Sandwich isn’t working right in your set up, here’re a few steps that you can take to troubleshoot the problem.

    Read the Article About When The “Edit with Page Builder Sandwich” Button Doesn’t Appear

    Check out the article here:  The “Edit with Page Builder Sandwich” Button Doesn’t Appear If it doesn’t fix things, read on.

    Check the Other Troubleshooting Articles

    Browse through the different articles in the  Troubleshooting Category in the docs.

    Make Sure Your Stuff Is Updated

    WordPress, your plugins, your theme and even Page Builder Sandwich. It’s always good to be updated. Making sure your stuff are updated means that you’ll have the latest bug and vulnerability fixes for your site.

    Try Editing Your Content in the Backend and Check If It Shows up in the Frontend Page/Post

    If you can’t edit your content with Page Builder Sandwich (and probably an error popup showed up), it may be that the content of current page you are on is all generated by your theme / a plugin. To check this, edit your page/post in the backend normally using WordPress, then check if your saved content shows up in the frontend. If it doesn’t appear, then that means the page/post content is all generated and cannot be edited using PBS.

    Deactivate Your Plugins One by One and Check When PBS Starts Working Again

    Sometimes, a plugin may have some conflict with Page Builder Sandwich. To check which plugin may be causing the conflict, deactivate a plugin and check if PBS starts working again. Do this for each of your activated plugins. If PBS begins working again and you can edit your pages, then the plugin you just deactivated isn’t compatible with PBS. In those cases, contact us via email at [email protected] and let us know so we can fix it.

    Switch Back to the Default WordPress Theme

    If deactivating plugins didn’t do anything, try switching your theme to the default WordPress theme (the Twenty-Something themes). If you can start editing your content with Page Builder Sandwich again, then the theme you’re using isn’t compatible with PBS. Send us this information via email at [email protected] and let us know so we can fix it.

    Try Incognito Mode (Rare)

    In rare occurrences, a browser extension can possibly prevent Javascript code in a website from working properly. To check if a browser extension is causing problems, open your browser in incognito mode (Chrome) or in private mode and try accessing PBS, this would open a new tab without any extensions. If it works, then you have a conflicting extension.

    The browser extension PageXray has been found to cause problems.

  • Will This Make My Website Load Slower?

    Will This Make My Website Load Slower?

    We have made sure that Page Builder Sandwich has close to zero impact in your website’s performance. When logged out, at the very least, only row and column CSS styles are enqueued, along with the necessary JS and CSS scripts for the shortcodes you have used are enqueued.

  • Is PBS Available in My Language?

    Is PBS Available in My Language?

    Page Builder Sandwich is now available in:

    • English
    • Hebrew
    • Spanish

    If you would like to help contribute to making Page Builder Sandwich by translating it to your language, head over to our  Transifex page!

  • PHP 7

    PHP 7

    We have tested Page Builder Sandwich with PHP 7 and everything should work fine without any problems.

    Be careful when upgrading your site from a lower version to PHP 7, as there are a lot of incompatibilities with lower versions that should be addressed in all your themes and plugins.

  • Themes That Use Materialize

    Themes That Use Materialize

    There is a Javascript error that occurs when both Page Builder Sandwich & Materialize are together. There is a conflict between materialize.js and WordPress Core’s color picker.

    There’s an issue placed in Materialize’s GitHub repo about this: https://github.com/Dogfalo/materialize/issues/2821

  • NextGen

    NextGen

    There was a previous problem regarding NextGen and Page Builder Sandwich.

    Prior to version 2.12, PBS somehow triggered NextGen to show an error message that made your site get a blank white screen. This has been fixed as of version 2.12, so if you’re using an older version, please update.

  • I Keep Getting A “Session Expired” Popup When Editing

    I Keep Getting A “Session Expired” Popup When Editing

    Page Builder Sandwich regularly checks whether you are still logged in WordPress. This is performed to ensure that your changes will indeed be saved by the time you hit the save button. This is also used for post locking and autosaves.

    We rely on the WordPress Heartbeat API in order to do our checks, and it in-turn relies on browser cookies and sessions. So if you keep getting those “session expired” popups while editing, there might be something hindering WordPress from tracking you properly. Here’re some stuff that you can do to solve this:

    Empty Your Cache

    If you have caching plugins installed, or DNS caching, or any form of caching, clear them. Also clear your browser cache. It’s possible that you are not being served the latest scripts for your site.

    Clear Your Cookies

    It’s also possible that your cookies have gotten corrupted, this can easily be solved by clearing your browser cookies from the settings of your browser. It’s usually near the option where you clear your browser’s cache.

    Check Your Site URL Settings

    Go to Settings > General and check your settings. Look for the settings for WordPress Address (URL) and Site Address (URL). The domains and protocols of those should match your actual domain. For example, if one has “http://” but you go to your site using “https://”, then the settings should read “https://”. Another common problem would be that one of those URLs has a “www” and one doesn’t.

    These should match:

    a96f7d7412 file jRzgrZO0et

    or:

    e00b20cbb4 file dTXaKDFHET

    To fix this, you can change the settings from Settings > General. If you cannot edit those settings, you can open up your FTP and edit the file wp-config.php, and add in the lines:

    define( 'WP_HOME', 'http://example.com' );
    define( 'WP_SITEURL', 'http://example.com' );
    
    Afterwards, clear your cache & cookies and try again.

    Make Sure The Heartbeat API Isn’t Disabled

    Lastly, check if you have a plugin (or theme) that forcefully disables WordPress’ Heartbeat API. It’s very helpful and we would personally recommend that you keep it enabled.
  • Where Do I Get Support?

    Where Do I Get Support?

    If you’re having trouble, we’re here to help! But first please check the documentation pages first, you might find the answer here and you’ll save time.

    • Support is NOT provided for the Lite version.. except for bugs.
    • Support is only provided for the Premium plugin and only if you have a valid license.
    • Licenses are valid 1 year after purchase.

    Email us your support inquiries at  [email protected]

  • What Can I Edit with PBS?

    What Can I Edit with PBS?

    You can only edit the content of pages, posts and custom post types using Page Builder Sandwich.

    You cannot however edit theme template files such as:

    • Frontpage (if it’s set as your latest posts in Settings > Reading)
    • 404 pages
    • Category list pages
    • Tag list pages
    • Search results pages
    • and other similar pages

    Think of it this way, if there’s an “Edit Post” or “Edit Page” on your admin bar in your frontend, then the page should be editable.

  • The “Edit with Page Builder Sandwich” Button Doesn’t Appear

    The “Edit with Page Builder Sandwich” Button Doesn’t Appear

    If you can’t see the “Edit with Page Builder Sandwich” button in the frontend of your site, here’re a few things you can try:

    Make Sure Your Admin Bar Is Visible

    The edit button for PB Sandwich is available in the admin bar in your frontend. Make sure the admin bar is visible by going to your administration and navigating to  Users > Your Profile and double check that the box for Show Toolbar when viewing site is ticked.

    e5960e581e file w9uN2EeCjm

    Make Sure You Are In a Page, Post or Custom Post Type

    Only Posts, Pages & Custom Post Types are Editable in the Frontend. You can only edit stuff in the frontend if you can edit them using WordPress’ content editor in the backend. The other areas of your site – e.g. the frontpage list of blog posts, list of all blog posts, category listings, 404 pages, search pages – are dynamic pages created by WordPress alongside the theme you are using and cannot be edited using PB Sandwich.

    One indicator if the current webpage is editable is if you can see an “Edit Post” or “Edit Page” on your admin bar.

    Make Sure Your Content Isn’t Dynamically Generated by Your Theme or a Plugin

    If your page/post is generated dynamically by a theme or plugin, then it won’t be editable with Page Builder Sandwich (and most likely in other page builders too). If you notice that your content editor in the backend is empty, but viewing your page in the frontend is full of content, then this is a good indicator that your page is dynamically generated.

    To check if your page is dynamically generated, view the source of your webpage (right click and then choose “View Page Source”). Search for the text “pbs-main-wrapper”, if you cannot see that text anywhere, then your page is dynamically generated.

    Here’re a few examples of dynamically generated content:

    • Your page is made up of multiple widgets that you add/edit using the Customizer,
    • Your page is made up of different pages pieced together by a “one page” theme (in this case you can still edit the individual pages, but not the combined one), or
    • Your page is made up of the latest blog posts.

    Try Adding Some Content First

    There have been cases where the theme didn’t display the content at all if it’s blank, and this made PBS mistakenly think that the page is uneditable. To check if this is the case, edit your page/post in the backend editor, try adding any text in your content (for example “hello”), then click on the “Edit with Page Builder Sandwich” button from there.

    Thanks Mathias Hellquist for this tip!

    Make Sure Your Page Isn’t “Owned” by Another Page Builder

    Some page builders make you choose to either use the default content editor of WordPress, or the page builder’s own editor. If you have already edited your page using another page builder, it’s possible that the page builder may have already “claimed” the content, and other content hooks/filters can no longer run. Because of this, sometimes Page Builder Sandwich won’t be able to detect where your content is and it won’t show the edit button because there’s nothing to edit.

    To fix this, just opt to not use that page builder for that specific page/post, and choose to just use the default content editor of WordPress.

    Make Sure You Have Editing Capabilities on the Page

    The edit button will not appear if you cannot edit the page. For example, if you are an editor or a contributor and you can write blog posts and articles in the site, that doesn’t necessarily mean that you can edit the front page or your contact us page. If you can see the “Edit Post” button on your admin bar, then you should also be able to edit it using PB Sandwich. Ask your site administrator for editing privileges if you need them.

    There Might Be a Javascript Error That Is Stopping PB Sandwich from Working

    PB Sandwich uses Javascript extensively. If there are Javascript errors that come from other scripts that you have in your site, this may prevent PB Sandwich from working. To check whether this is the case, you can open the developer console in your browser to check for errors. 

    I would recommend using Chrome for this one. Right click on anything in the page, then click on the “Inspect” option. This will bring up a new area on the bottom of your browser, click on the “console” tab. If you have errors, you should see something like this:

    4acce143a3 file

    If you do have an error, You can also get a clue where this is coming from by clicking or hovering your mouse over the script’s name:

    abb5a87c67 file ITjVcdhZQU

    These errors may come from your theme or other plugins that you may have. Having those errors fixed can make PB Sandwich work again.

    If your theme or one of your plugins is causing the Javascript error, kindly let us know via email at  [email protected] and we will do our best to fix the issue 🙂

    If You Are Using CloudFlare, Make Sure Rocket Loader Is Turned Off

    CloudFlare is a widely used free DNS CDN. It’s great, but PBS currently has problems when it comes to the Rocket Loader feature. Rocket Loader improves the load time of Javascript files, but it messes up the dependency and call order of PBS’ scripts. If you have Rocket Loader turned on, the edit button for Page Builder Sandwich will not appear (and no Javascript console errors show up).

    To check if your site is using CloudFlare’s Rocket Loader, view the source of your webpage (right click and then choose “View Page Source”), and then search for the text “rocketscript”, if you find that text then you have Rocket Loader turned on.

    e4dff5b8c0 file tPnWvP09FF

    Read the article on  CloudFlare & Rocket Loader Compatibility for full instructions on how to turn it off.


    I Did All of Those and the Edit Button Is Still Not There!

    Okay at this point, if none of the above solutions work, then it might be time to explain why it isn’t showing up and what to do about it. Ready? Let’s go!

    The “Why” (in Non-Technical Terms)

    Page Builder Sandwich needs to know where your page/post’s content is located. We do this by listening to when WordPress loads the post’s content and “marking” that area, so that when everything’s loaded we can find where the good stuff is.

    Sometimes, some plugins override or bypass this process and instead try and load the content their own way. Sometimes this is okay, but in certain scenarios, especially when loading the main post’s content is concerned, this may cause some plugins to stop working. When another plugin bypasses this loading process, the “markings” we have performed may get lost, and when it comes time for the editor to kick in, it cannot find where your content is anymore. So, the edit button doesn’t appear! You may also find that some plugins that add content to your page, such as some social sharing plugins may also stop working because of this exact same thing.

    The “Why” (in Technical Terms)

    Page Builder Sandwich needs to  know where your page/post’s content is located, and it does this by hooking into the_content filter and adds a wrapper around your main content. Some plugins may override this and instead overwrite the content with a get_the_content() function further along the line. Unfortunately, doing this prevents ALL the_content filters from being called and hence PBS’ wrapper gets lost. Any other plugin’s changes would get lost as well.

    There is nothing wrong with using get_the_content() per se, but there may be adverse effects if this is used in the main query and inside single post template page instead of normal the_content() call where all the_content filters are ran.

    What to Do About It

    You can check if Page Builder Sandwich’s “markings” are not present by visiting your page/post in the frontend and viewing the page source while logged in. Search through the jumble of code if you can find the string:

    data-name="main-content"
    

    If you can find it, then there might just be a Javascript problem somewhere and just let us know the theme and plugins that you’re using and we can fix that.

    But if you cannot find it, then it may just be that your theme (or a plugin, but it’s most likely the theme if it’s a page or blog post) is doing something with the post content. If this is the case, then you should contact the theme author and let them know about the problem! You can also show them the technical “why” explanation above, this can help with the debugging 🙂

    If you feel confident tinkering around in PHP, you can try fixing it by finding the template file that handles the post content. One solution we’ve encountered is by replacing calls for:

    $content = get_the_content();
    

    with:

    ob_start();
    the_content();
    $content = ob_get_clean();<br>
    

    Note: The PHP variable may vary in yours, but the concept should be the same. If it works, then it would be better also if you can create a child theme instead of implementing this change in your theme directly. There also may be side-effects because of the change, so it’s better if you consult with your theme’s author about this.