Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @digihive,

    Perhaps you can use custom JS code to achieve this. For example, you can try adding the code from the link below to your functions.php.

    Pastebin: https://pastebin.com/ujDEZMym

    We’ll await your further updates.

    Thank You

    Thread Starter digihive

    (@digihive)

    Hi @fauzanjegstudio

    Thank you for your reply.

    I added the code and it is present in the HTML source however, it is not functioning as expected. Well. Actually it is functioning exactly as coded, b/c it acting on click on post (jkit-postblock).

    However, I was initially asking about JK Icon box?elements (jkit-icon-box)

    Can you help adjusting your code to trigger on JK Icon Boxes element?

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @digihive,

    I apologize for the misunderstanding. You can use the code provided in the link below for the Icon Box widget.

    Pastebin: https://pastebin.com/MPZjD0Mw

    We hope that the code works well for you.

    Thank You

    Thread Starter digihive

    (@digihive)

    Hi @fauzanjegstudio

    The script works well. Can we adjust it to only add to pages with the Jkit Icon Box in the footer? Currently, it’s applied to all pages, even where the Icon Box isn’t present.

    I also noticed many unused Jeg Elementor Kit scripts on pages for elements that are not explicitly used on those pages, making them script-heavy. Are there plans to optimize this, removing unnecessary code from pages where it’s not needed?

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @digihive,

    You can add conditions using if and use the get_the_ID() function to determine the page ID. For example, you can refer to the code at the link below.

    Pastebin: https://pastebin.com/7fgmjqyK

    https://developer.www.ads-software.com/reference/functions/get_the_id/

    For the unused scripts, could you mention those scripts? That way, we can further investigate them. As a recommendation to improve your site’s performance and prevent it from becoming too heavy, we suggest using optimization plugins and caching systems. For optimization plugins, you can use WP Rocket, LiteSpeed, etc. For cache, there are different types of caching you can utilize, such as WordPress cache (with plugins), server cache, query cache, or CDN cache like Cloudflare.

    We’ll await your further updates.

    Thank You

    Thread Starter digihive

    (@digihive)

    Thank you, @fauzanjegstudio.

    I’ve enhanced your code to not only specify pages for script inclusion but also to:

    1. Make the mouse cursor a pointer over the entire JK Icon box.
    2. Link the JK Icon Box only if an “href” value exists.

    Check it out here: https://pastebin.com/ZYL8WZJM

    Regarding code clarity, consider your BlueCorp theme: https://templatekit.jegtheme.com/blucorp/

    The homepage has 3 JKit Post Block elements https://take.ms/qRwdxx without pagination https://take.ms/sxK2z

    Despite this, the source code contains unnecessary settings for pagination, as seen here: https://take.ms/5mMYp.

    This is repeated for every instance of JKit Post Block on the home page and issue recurs across almost every other Jeg plugin element.

    This extra code slows down page loading and rendering, impacting site performance and search engine rankings, as search engines prefer sites with higher content to code ratio.

    The optimization plugins you mentioned don’t address this issue in the webpage’s source code.

    • This reply was modified 1 year ago by digihive.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘JKit Icon Box – clickable’ is closed to new replies.