Skip to main content


Forum Replies Created

Viewing 15 posts - 1 through 15 (of 39 total)
  • Author
  • in reply to: Beset Practices for adding jQuery code before tag #236463


    Looks like maybe I’ll just go with this script from labnol instead.


    window.onload = function() {

    // Delay to allow the async Google Ads to load
    setTimeout(function() { 
      // Get the first AdSense ad unit on the page
      var ad = document.querySelector("ins.adsbygoogle");
      // If the ads are not loaded, track the event
      if (ad &amp;&amp; ad.innerHTML.replace(/\s/g, "").length == 0) {
        if (typeof ga !== 'undefined') {
            // Log an event in Universal Analytics
            // but without affecting overall bounce rate
            ga('send', 'event', 'Adblock', 'Yes', {'nonInteraction': 1}); 
        } else if (typeof _gaq !== 'undefined') {
            // Log a non-interactive event in old Google Analytics
            _gaq.push(['_trackEvent', 'Adblock', 'Yes', undefined, undefined, true]);
    }, 2000); // Run ad block detection 2 seconds after page load



    Find How Many Visitors Are Not Seeing Ads on your Website


    The entirety of the Yith Woocommerce Brands archive template looks like this. It renders all the products of the brand.
    Anyone have any ideas on extending this then, concepts/codes would be greatly appreciated.

    * This file belongs to the YIT Framework.
    * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
    * that is bundled with this package in the file LICENSE.txt.
    * It is also available through the world-wide-web at this URL:

    if ( ! defined( ‘YITH_WCBR’ ) ) {
    } // Exit if accessed directly

    global $product;

    if( ! empty( $term_description ) ){
    echo $term_description;


    I guess after thinking about it maybe it would be easier to just worry about creating brand Pages, and being able to pull in the Brand Products to that page, makes much more sense, as I think about it now.


    in reply to: CSS styles needed to make this list-style none? #210497


    Thanks for sticking w/ me @shikkediel
    When I started tinkering with the list style spacing, I removed a line of code from line 351 probably, and from there on nothing was working.

    Thanks for pointing out the obvious, had a feeling there was some sort of error, as none of the CSS whatsoever was having any effect.

    The List Category Post is a wonderful plugin.

    in reply to: CSS styles needed to make this list-style none? #210495


    Dude, will check on that, had a feeling, there was possibly a missing bracket or some syntax error.


    in reply to: CSS styles needed to make this list-style none? #210488


    The styles are showing at the bottom of this stylesheet, added by the themes options on line #61

    For the plugin something is showing up all the way down on line 875, not exactly sure, how this effects the output, for sure.
    <link rel=’stylesheet’ id=’lcp_paginator-css’ href=’/wp-content/plugins/list-category-posts//lcp_paginator.css’ type=’text/css’ media=’all’ />

    The plugin also mention PHP templates, so not sure how to actually ‘style’ the plugin itself, there is no stylesheet for it, or I would hack it directly.

    in reply to: CSS styles needed to make this list-style none? #210482


    I tried that elegant and simple solution, but seems not to work.
    Also having the problem on this live election results page: :(

    Still no luck, funny thing is, I think initially on the election page, the bullets were not showing up, not sure when they appeared.
    I’m wondering of the Theme’s override stylesheet is loading after the List Category posts styles, like it should too.
    In that case my override stylesheet would never work.
    After hours of battling css, you wind up with getting just crazy with the coding, and it’s usually something simple.


    Ok, I was just being daft, all I had to do was kill the css in the theme that tells embed to be height auto, duoh!
    I was adding other applicable embed code for a specific ID embed, but was not killing the original embed code css in my themes stylesheet.
    Fixed the issue, now I need to clean up the code I junked up.
    Hate that…
    Thanks anyways.


    I came up with a quick way to document my changes to the original plugins listing.js files. I commented all my changes with:
    // clientname
    In the end it was just knowing how to better use the notepad++ editor.
    1. Use Ctrl + F and search for clientname
    2. Click the button Find All in Current Document
    3. This opens a list of all the commented changes made to the document, in a panel at the bottom of the editor.
    4. From there you can copy all the changes by using Right click Select All and Copy.
    5. Copy all those commented changes along with their line numbers easily, to a local file for safe keeping and reuse.

    Caveat: Editing this file has to be redone on every plugin upgrade, unless you use some sort of file Difference checker compare the file to the previous versions listing.js in this case, and if there are no changes just copy in the edited version. Better than nothing either way.

    Who’s got something better :)~


    Now the next css to pull from the bag of tricks here:



    @paulie_d it was the syntax of placing header before #masthead.
    I had been trying:
    #masthead header { as a handle, instead of the correct:

    thanks for the suggestion.
    In my travels on troubleshooting this one, I found new to me properties for background-size.
    Cover and contain… more reading:
    Think I’m good for now then, leaving this on the back-burner probably till Monday. :)


    I couldn’t quite decipher the code to get it on the header itself.
    The Css syntax for that was escaping me :(
    Could not get it to appear at all, was doing something wrong, hence, when you saw it without probably.


    @paulie_d sorry was tinkering, check it now.. thanks.

    in reply to: Creating a Self-hosted Video publishing platform? #169926


    I can’t believe nobody told me to check into mediaelement.js
    Looks like maybe the ‘golden ticket’ I’ve been looking for.
    With solid code examples in the github download, I think I’m all set.

    I’ve seen samples for pushing both Youtube and Vast video prerolls thru plugins.
    Also it’s built into WordPress core and there’s a WP plugin version, that’s where I get a bit confused. I totally get the stand alone js library, so off to a good start.

    As usual I’m late to the party.

    in reply to: Making the Youtube-TV library responsive? #169613


    Having to tweak that code sheet, that CSS sheet with the github project’s demo.css makes everything dissappear.
    Looking to merge the good RWD responsive bits and come up with a hybrid .css styles.
    My problems so far the whole thing doesn’t seem to want to size down below 800 px wide.
    Work in progress then.

Viewing 15 posts - 1 through 15 (of 39 total)
icon-link icon-logo-star icon-search icon-star