This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

AddThis Widget Works on Normal Page, Not in Custom Layouts

  • Creator
    Topic
  • #1999
    bvalliance
    Member

    Hi Jason… love your work and really love the Alyeska theme. So much that I’ve purchased it twice and will continue to do so each time I use it on a new site. Thank you for your work!

    I make it a practice to use the AddThis plugin for sharing/sharing tracking. I’m having a problem with Aleyeska… it seems that Alyeska has an interference on the pages/layouts that are using custom layouts. It will not load the AddThis share plugin content in a widget in a footer widget area.

    Pages not working: Home (a custom layout I made with your framework), Blog (Using standard ‘Post List’ template)
    Pages working: Photo Gallery, About, general pages using default right sidebar layout

    You will need this link to bypass JF3 Maintenance Plugin as I am finalizing quirks including this one. http://www.sarvisprairie.com?wpjf3_mr_temp_access_key=LJllpBOHQWzNAlFIQtyo

    Tinypic
    Notworking: http://tinypic.com/r/24wdb1t/6
    Working: http://tinypic.com/r/2mfzx38/6

    Thanks in advance for your help!
    Kyler
    Redding, CA

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #2029
    Jason Bobich
    Keymaster

    Hello,

    I’m not sure how the widget pulls its data, but the only thing I can think of is that it would have something to do with the query not getting reset possibly after the paginated post list.

    Try something like this from your Child theme’s functions.php:

    function my_reset_query(){
          wp_reset_query();
    }
    add_action( 'themeblvd_main_bottom', 'my_reset_query' );
    #2035
    bvalliance
    Member

    Jason – thank you for the reply! I added what you suggested to the functions.php of my child theme (“SPO”). It did not change it. Here’s the entire functions.php:

    <?php
    /*-------------------------------------------------------*/
    /* Run Theme Blvd framework (required)
    /*-------------------------------------------------------*/
    
    require_once ( TEMPLATEPATH . '/framework/themeblvd.php' );
    
    /*-------------------------------------------------------*/
    /* Start Child Theme
    /*-------------------------------------------------------*/
    
    // Start the party ...
    
    // Add stylesheet - Level 4, will get added after EVERYTHING
    themeblvd_add_stylesheet( 'custom_styles', get_stylesheet_directory_uri().'/assets/css/custom.css', 4 );
    
    /* Mods suggested by Jason Bobich to fix AddThis widget: */
    function my_reset_query(){
    
          wp_reset_query();
    
    }
    
    add_action( 'themeblvd_main_bottom', 'my_reset_query' );
    #2059
    Jason Bobich
    Keymaster

    That is placed correctly, but if that doesn’t solve it I have no idea. I tried to reproduce the same issue, but can’t on my end.

    See footer here, similar to how you have it setup:

    http://www.themeblvd.com/demo/alyeska/blog/

    http://www.themeblvd.com/demo/alyeska/features/layout-builder/sample-layouts/showcase-blogger

    #2063
    bvalliance
    Member

    Jason, another issue I’m having is the Paginated Post Grid on the home page does not respond to clicking the 2nd page (2) button. Perhaps these are related? Any ideas you could offer? I really haven’t modified this theme’s php in any way… so I don’t see how I could have caused it.

    Also, what template layout do you recommend use for the general blog page? I have used Post List. Don’t know if this could be a cause either.

    #2073
    Jason Bobich
    Keymaster

    Another issue I’m having is the Paginated Post Grid on the home page does not respond to clicking the 2nd page (2) button.

    This is just because you have a static page set as your frontpage. As noted in your user-documentation under the Builder section, WordPress has issues with pagination and a static frontpage for whatever reason.

    Just go to Settings > Reading > Frontpage Displays and select “your latest posts”. Then, go to Appearance > Theme Options > Content > Homepage and select to show your custom layout.

    Also, what template layout do you recommend use for the general blog page? I have used Post List. Don’t know if this could be a cause either.

    Yeah, I’d say using the Post List page template is the easiest way to go. That’s what I have setup here: http://www.themeblvd.com/demo/alyeska/blog/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.