-
AuthorPosts
-
August 7, 2022 at 11:33 am #1360986
Hi,
i would like to make one link from the portfolio raster to the Home Page.
Is it possible in quick css?many greetings rixi
August 7, 2022 at 10:37 pm #1361024Hey rixi,
We could help with a code snippet to add a link, but I’m not sure where you would want the link placed, please include a screenshot mockup of where you would want the link.
To add a screenshot please try using an Screenshot service and pasting the image URL in your post.Best regards,
MikeAugust 8, 2022 at 7:51 am #1361055Hello Mike,
i made a mistake. Wanted to have a link from all logos to the page impressionen. When i don`t put the link into the single portfolio page of the logo it goes automatically to the “Home” page, like by the first logo. This setting for all logos i would like to change so that they go to the site “impressions”.Thanks for your help :)
RixiAugust 8, 2022 at 12:29 pm #1361101Hi,
Thanks for the feedback, to change all of the portfolio grid links on that one page to your /impressum/ page, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function change_all_links_in_portfolio_grid() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('#top.page-id-4746 #av-sc-portfolio-1 .grid-sort-container .grid-entry article').each(function() { $(this).find('a').attr('href', "/impressum/"); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'change_all_links_in_portfolio_grid');
Then clear your browser cache and check.
Best regards,
MikeAugust 8, 2022 at 12:43 pm #1361103This reply has been marked as private.August 8, 2022 at 1:08 pm #1361107Hi,
I didn’t add the code into your child theme functions.php file, I was asking you to add this code.
If you would like us to add it for you please include an admin login in the Private Content area below.
Please note that if you add the code yourself, copy the code from the fourm, not from an email.Best regards,
MikeAugust 9, 2022 at 9:52 am #1361214This reply has been marked as private.August 9, 2022 at 12:09 pm #1361229Hi,
Thanks for the login, I see your WordPress ▸ Appearance ▸ Theme File Editor has been disabled so I added the plugin Simple Custom CSS and JS and added the code so they link to /impressionen/
Please clear your browser cache and check.Best regards,
MikeAugust 9, 2022 at 1:45 pm #1361251hi Mike,
jipppppiiiieeee, that is perfect! Thanks a lot!!!!!Many regards rixi
August 9, 2022 at 6:28 pm #1361277 -
AuthorPosts
- The topic ‘Link from portfolio raster (all items) to one page’ is closed to new replies.