Site icon Catch Themes

target a Modal instead of _self for content services

Hello, I am trying to change behavior of home page links from the featured-content and services sections. At first, I tried deactivating them, which works (see, this thread…) using CSS pointer-events:none; But the display on mobile (phone) is not good since text/images are too narrow. So, I thought of using a simple thumb+title and displaying the resulting article/page in a modal box instead of a classic link. My goal being to stay on the home page and not change page for these short contents. I installed fancy-box plug-in & managed to change the content-featured.php template part to include a "fancy-frame" class on the links. Now, I am a bit lost doing the same thing with the Services. I tried modifying service.php in the inc folder but without success. Can you help? thank you Site url: https://www.maison-des-algues.com PS: I made a template page with no header/footer and/or remove them with a display:none in CSS for that purpose, depending on wether I use posts or pages
Exit mobile version