Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m working on this as well, using the same solution you mentioned. But I’m having some problems.

    `add_action( 'wp_print_scripts', 'deregister_javascript', 50 );

    function deregister_javascript() {
    wp_deregister_script( 'jquery' );
    }

    add_action( 'wp_enqueue_scripts', 'my_register_scripts', 100 );

    function my_register_scripts() {
    $jquery = "https://domain.com/wp-includes/js/jquery/jquery.js";
    wp_enqueue_script( 'jquery', $jquery, array(), false, true );
    }`

    The above code is not working though. I thought maybe it’s because the hook used for the deregistering is executed after the hook used to add the script. But even if I change the hooks to both wp_print_scripts the scripts appear, but for some reason they do not appear in the footer.
    What am I doing wrong?

    Hello!

    Great plugin! Thanks for your hard work.

    I’ve replaced this: $returnMarkup .= "<div class=\"fbf_desc\">".$desc."</div>";

    with this: $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,-1000)."</div>";

    And it works great as long as you’re okay having an excerpt start at the end of the description.

    Alternatively I would think you could do something like this:

    $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,0,200). substr($desc,-400)"</div>";

    I haven’t tested the directly above but it might be worth a try to get a beginning description AND the image together.

    https://largerthanlife.rvn8.com/

    Thank you very much

    #product_categories-3 .product-categories .cat-item-64, #product_categories-3 .product-categories .cat-item-65, #product_categories-3 .product-categories .cat-item-66, #product_categories-3 .product-categories .cat-item-20, #product_categories-3 .product-categories .cat-item-34, #product_categories-3 .product-categories .cat-item-70{

    display: none;

    }

Viewing 3 replies - 1 through 3 (of 3 total)