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.

page builder not showing

Resolved 2 replies pluginplugin-page-builder
11 years ago · Last reply by Andrii Holovan 9 years ago

I installed the plugin page builder on our blog and tried this on the following page: http://www.ecomarkt.nl/blog/acai-energie-smoothie/. Unfortunately the layout I’ve created is not showing. I’m running this webshop on Magento with a WordPress integration (Fishpig). Can you please help me to fix this problem?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Greg Priday Staff 11 years, 7 months ago

    Hi Eco

    For this, you’d need to contact the developers of Fishpig. I’ve had a look at your source and it doesn’t seem like anything from Page Builder is loading. I’m not sure how Fishpig works, but it doesn’t seem like it’s compatible with Page Builder.

    Sorry I couldn’t be more helpful.

  2. Andrii Holovan 9 years, 3 months ago

    Hi, guys.
    Seems this is still the issue. So, we found the way to solve but it’s interested what you are think about it. And It works on multistore level also
    1) create file wp-get-post.php in WP dir

    <?php
    if (!defined('ABSPATH')) {
        /** Set up WordPress environment */
        require_once( dirname( __FILE__ ) . '/wp-load.php' );
    }
    if (isset($_GET['post_id'])) {
        echo siteorigin_panels_render(intval($_GET['post_id']));
        siteorigin_panels_print_inline_css();
    }

    2) extend function getPostContent() method which in class Fishpig_Wordpress_Model_Post with the code:

    public function getPostContent($context = 'full')
        {
            $key = rtrim('filtered_post_content_' . $context, '_');
            if (!$this->hasData($key)) {
                $data = file_get_contents(Mage::helper('wordpress')->getBaseUrl() . '/wp-get-post.php?post_id=' . $this->getId());
                if ($data && $data != "") {
                    $this->setData($key, Mage::helper('wordpress/filter')->applyFilters($data, $this, $context));
                } else {
                    $this->setData($key, Mage::helper('wordpress/filter')->applyFilters($this->_getData('post_content'), $this, $context));
                }
            }
            return $this->_getData($key);
        }

    I’ll appreciate for any improvements.
    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