Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Enfold Sidebar on single product pages #1374540

    Hi,

    I realise this is an old post but for the benefit of anyone who has Googled this topic and are using Ismael’s first solution for a right sidebar (post-1162484), there’s a slight code tweak required if you find that the default sidebar is being loaded instead of your ‘Single Product Pages’ sidebar:

    ‘global $avia_config;’ must be added to the ‘avia_add_sidebar()’ function. So revised code is as follows:

    add_action('init','ava534345953_init', 50);
    function ava534345953_init() {
      add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar', 25);
    }
    
    function avia_close_image_div() {
      global $avia_config;
      echo "</div>
    ";
    }
    
    function avia_add_sidebar() {
      global $avia_config;
      if(is_product()) {
        $avia_config['currently_viewing'] = 'shop_single';
        get_sidebar();
      }
    }

    Ismael’s CSS code remains unchanged:

    .single-product-main-image {
        width: 25%;
    }
    
    .single-product-summary {
        overflow: hidden;
        width: 45%;
        float: left;
        margin-right: 5%;
    }
    
    .single-product .sidebar {
        width: 25%;
    }
    in reply to: Social icons not showing #1173100
    This reply has been marked as private.
    in reply to: Social icons not showing #1173070

    Hi,

    Also just updated to 4.7 and the icons are still missing. I had to use the same fix as previous version i.e. replace ‘function-set-avia-frontend.php’ code.

    Fixed in 4.7.1 perhaps?

    Regards
    Glen

    in reply to: LayerSlider white box bug #666466

    OK. Thanks very much for your follow-up, Ismael. Excellent support as usual.

    Must be some problem unique to my own config, browser etc.

    Thanks again for your time.

    Regards
    Glen

    in reply to: LayerSlider white box bug #665589

    Hi Ismael,

    Thanks for your reply. Yes, I realise slider won’t appear in preview unless page is saved. The issue was that the slider wouldn’t appear on the page even after it was saved. An empty white box would appear instead. Don’t worry about pursuing the Slider issue as I realise it could take ages to track down.

    The preview problem is a separate issue. The image below demonstrates the problem:

    Regards
    Glen

    Preview Problem

    in reply to: LayerSlider white box bug #664455

    Hi Rikard,

    Thanks for your reply. I’ve included the login and relevant info in private content.

    Cheers
    Glen

    in reply to: Portfolio Grid – Portfolio Categories not displaying #199813

    OK – I solved it myself. Hope this may help someone else having the same problem –

    In the file ‘themes > enfold > config-templatebuilder > avia-shortcodes > portfolio.php’ around line 455 there is the following line of code:

    if(in_array($category->term_id, $current_page_cats, true))

    Change the ‘true’ to ‘false’ so it reads:

    if(in_array($category->term_id, $current_page_cats, false))

    (The Kriesi team might want to make the change above in a future update??)

    Cheers

    • This reply was modified 11 years ago by pixelboy1.
Viewing 7 posts - 1 through 7 (of 7 total)