cancel
Showing results for 
Search instead for 
Did you mean: 

Make category banners clickable to a category section

Make category banners clickable to a category section

Yo bro if you wanna unload some stress, jerk to the biggest free black poorn stash on the net—thousands of nasty ebony chicks clappin cheeks, horny stripper booties, hood thots deep-throating, and top stars like Diamond Jackson, Jada Fire & Moriah Mills getting pounded in full freak sessions; raw 100% African ass pounding, faat ghetto booties bouncing, creampie dripping everywhere. No pay ever yo.

 

https://blackpornsite.org/videos/flippin-this-lil-yella-bitch/

https://ebonyporn.ooo/videos/29407/ebony-shemale-gatwick-uk-hotel/

https://blackporn.fun/videos/25593/brown-bunny-sucks-off-dad-bod-brad/

Wanna see real deal ghetto queens twerkin on BBC before the diick downs? Crank up our tube, bruh. Steaming nonstop vault of A1 ebony smut: curvy African hotties, Homemade hood clips, next-door street thots squirting, Big booty blowjobs, oily twerk face rides, doggy agressive pounding from hung thugs. Dmca killa links, phone-friendly, nut-inducing thumbnails, Jezabel Vessir and Bethany Benz at their coockhungriest. Fap fleet goin hard 24/7.

1 REPLY 1

Re: Make category banners clickable to a category section

Hello @GarajeQuija209,

 

Yes, using an anchor link (<a href="#your-target-id">) is a simple and effective method, but you can refine it for a better user experience.

 

Instead of #top, target the main content container of your category page. Magento 2 typically uses id="maincontent" for the main page content, but if your category product listing has a specific wrapper, you can target that instead.

 

For ex:

<div class="category-cta">

    <p>Still interested? <a href="#category-product-list">Click here</a> to view products.</p>

</div>

Instead of a hard jump using an anchor link, you can add smooth scrolling with JavaScript for a better user experience.

JavaScript Solution:

Place this inside a custom .js file or inline within a <script> tag:

document.addEventListener("DOMContentLoaded", function () {

    document.querySelector(".category-cta a").addEventListener("click", function (e) {

        e.preventDefault();

        const target = document.querySelector("#category-product-list");

        if (target) {

            window.scrollTo({

                top: target.offsetTop - 20, // Adjust for spacing if needed

                behavior: "smooth"

            });

        }

    });

});

For simplicity → Use an anchor link (<a href="#category-product-list">).

For better UX → Use JavaScript smooth scrolling.

 

If the issue is resolved, click Kudos and accept it as a solution.