WordPress.org

Ready to get started?Download WordPress

Forums

Popular Posts Tabbed Widget for Jetpack
[resolved] Bullets showing (25 posts)

  1. elenabrz
    Member
    Posted 8 months ago #

    I use this plugin in 2 different sites, and in both there are bullets showing in your widget, how can I remove them?

    See here (staging site): http://agbclinica.wpengine.com (homepage)
    Or here http://elenabenitoruiz.es/blog

    Any hint would be highly appreciated. Thanks a lot in advance!

    http://wordpress.org/plugins/popular-posts-tab-widget-for-jetpack/

  2. Ryann Micua
    Member
    Plugin Author

    Posted 8 months ago #

    Try adding this to your custom css (any solution):

    .pptwj-tabs-wrap .boxes ul li{ list-style: none outside none; }

    if that doesn't work, try this:

    .pptwj-tabs-wrap .boxes ul li{ list-style: none outside none !important; }

  3. elenabrz
    Member
    Posted 8 months ago #

    Hi Ryann, thanks for the fast response. The second line did the trick on both sites.
    Thank you very much.

  4. MartinSayles
    Member
    Posted 5 months ago #

    I tried this fix, but it didn't work. Any other suggestions?

    Site: http://www.worker-communist.org

  5. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    Hi Martin, just checked out your site, but I don't see any posts in the tabs.

  6. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    Hey Ryann,

    I'm having the same issue. It worked a long time ago and then I started working on some coding/plugin fixes to speed up my site because it was running ridiculously slow. Now I can't seem to get the jetpack tabbed widget to run like normal.

    I, too, have the bulleted widget. I added the above coding each at a time to custom.css to no avail. Any ideas?

    Here's my website: http://hiphopspeakeasy.com

    The plugin is on the bottom/middle right

  7. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    I think I know why.. in the coding/plugin fixes you did, you may have added something like this:

    //doesn't block the load event
    function createIframe(){
      var i = document.createElement("iframe");
      i.src = "path/to/file";
      i.scrolling = "auto";
      i.frameborder = "0";
      i.width = "200px";
      i.height = "100px";
      document.getElementById("div-that-holds-the-iframe").appendChild(i);
    };

    the javascript error is "Uncaught TypeError: Cannot call method 'appendChild' of null"

  8. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    I believe that that's a coding I used when inserting frames. I used that very specifically (i.e. in specific widgets). Those were gone before this problem arose though. Is there a particular place this issue could be residing? I've since updated my theme without using a child theme so those modifications have since been wiped. Could it have anything to do with caching in php.ini or htacess folders?

  9. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    probably yes.. I dunno, but the first thing I did was check for javascript errors using inspector and boom! there it was ;)

    here's a picture. maybe this will help http://tinypic.com/r/2cqxj60/8

  10. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    haha thanks for the image. helped me find the one block I left in there. got rid of that and it's still not working tho :(. I added the coding to my custom css again (the ones you mentioned above) but they didn't work. Then I disabled all of my plugins to see if one was interrupting and that didn't work. So either I"m missing something or there is still some modifications i made that are getting in the way. argh!

  11. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    any idea?? I really want to use this plugin but it's not working the way it needs to and so I cannot use it at the moment. help please!

  12. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    Hmmm.. can you put it up again?

  13. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    It's up on the middle right -- http://hiphopspeakeasy.com

  14. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    I don't see it.

  15. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    it's right next to all of the post thumbnails. right sidebar on the home page

  16. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    am i going blind? http://tinypic.com/r/5b1dec/8

  17. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    haha idk what to say because it's there for me.

    http://tinypic.com/r/5lay2r/8

    I just deleted the widget. uninstalled the plugin. reinstalled and reloaded it into the sidebar. try again if you could: http://hiphopspeakeasy.com

  18. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    there you are :)

    Now, here's what I found, the javascript file of the plugin isn't loading anywhere in the page. To see for yourself, go to the homepage, hit Ctrl + u to view source, then do a find for tab.js file.

    If it's there, it should show up somewhere in the <head> like this: http://tinypic.com/r/zklah3/8

    on your site, it's not there.

    assuming you didn't dequeue the javascript file or something, the only thing I can think of that may be giving you trouble is somewhere in line #95 of the plugin file:

    /* Load scripts and css */
    		if ( is_active_widget( false, false, $this->id_base ) ) {
    			add_action( 'wp_enqueue_scripts', array('Popular_Posts_Tabbed_Widget_Jetpack','enqueueAssets' ) );
    			//setup action to handle ajax call
    			add_action( 'wp_ajax_pptwj_tabwidget_list', array( 'Popular_Posts_Tabbed_Widget_Jetpack', 'ajaxProcessor') );
    			add_action( 'wp_ajax_nopriv_pptwj_tabwidget_list', array( 'Popular_Posts_Tabbed_Widget_Jetpack', 'ajaxProcessor' ) );
    		}

    maybe it's not falling through the call to is_active_widget() or something. I dunno.

    Also, I noticed the post-tiles plugin is also loading jquery 1.7.1 while wp is loading jquery 1.10.2

    just saying..

  19. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    hmm I faintly remember working on kicking js or queries out of the head to increase speed. would the code below affect anything? I deleted it from my php.ini and htacess files but nothing happened so I doubt they do:

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>
    ## EXPIRES CACHING ##
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  20. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    another thing I wonder it may be is my deferred functions.js file in my wp-content folder:

    <script type="text/javascript">
    
     // Add a script element as a child of the body
     function downloadJSAtOnload() {
     var element = document.createElement("script");
     element.src = "deferredfunctions.js";
     document.body.appendChild(element);
     }
    
     // Check for browser support of event handling capability
     if (window.addEventListener)
     window.addEventListener("load", downloadJSAtOnload, false);
     else if (window.attachEvent)
     window.attachEvent("onload", downloadJSAtOnload);
     else window.onload = downloadJSAtOnload;
    
    </script>
  21. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    I do not know of any other surviving code due to the fact that I have upgraded the theme which erased my modifications. all that's left that I recall is what I have pasted above. do you know of a fix for this? Only thing I can think of is that it's a theme issue and that I must contact my theme support

  22. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    I really have no idea. but as for loading the js file, that condition check is to see if the widget is active on the page and if it is, then the js file is enqueued.

  23. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    that code you pasted is exactly as it is in my plugin file

  24. HipHopSpeakeasy
    Member
    Posted 5 months ago #

    Ryann,

    What is interesting is that I have discovered that this is only occurring on my home page. I added the plugin to my widgets sidebar for post pages and it's working. Take a look:

    http://hiphopspeakeasy.com/2014/02/dag-savage-ej-album-review/

    Any ideas?

    By the way, on the home page, it's actually set up through a plugin called Page Builder by Site Origin.

    Wonder if this helps.

  25. Ryann Micua
    Member
    Plugin Author

    Posted 5 months ago #

    Then, I think the issue is that Page Builder isn't picking up on the is_active_widget() condition or something?

    anyway, you could just try to enqueue the js file globally. In your functions.php file add something like this:

    add_action( 'wp_enqueue_scripts', 'load_pptwj_script' );
    function load_pptwj_script(){
       if(is_front_page() || class_exists('Popular_Posts_Tabbed_Widget_Jetpack')){
          $widgetUrl = Popular_Posts_Tabbed_Widget_Jetpack::getWidgetUrl();
          wp_enqueue_script('pptwj-widget-tab-js', $widgetUrl . 'tab.js', array( 'jquery' ) );
          wp_enqueue_style( 'pptwj-widget-tab-css', $widgetUrl . 'tab.css' );
    
          $js_vars = array( 'ajaxUrl' => admin_url( 'admin-ajax.php' ) );
    
          wp_localize_script( 'pptwj-widget-tab-js', 'PPTWJ', $js_vars );
       }
    
    }

    oh yeah, word of warning, I haven't tested that code so make sure you can get your site back just in case I have a typo in there somewhere :D but basically, it should load the needed files for you.

    If it doesn't work, try removing the is_front_page() condition. other than that, I have can't think of anything else.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.