Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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

    #1361024

    Hey 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,
    Mike

    #1361055

    Hello 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 :)
    Rixi

    #1361101

    Hi,
    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,
    Mike

    #1361103
    This reply has been marked as private.
    #1361107

    Hi,
    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,
    Mike

    #1361214
    This reply has been marked as private.
    #1361229

    Hi,
    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,
    Mike

    #1361251

    hi Mike,
    jipppppiiiieeee, that is perfect! Thanks a lot!!!!!

    Many regards rixi

    #1361277

    Hi Rixi,

    We are happy that Mike helped you out!

    Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Link from portfolio raster (all items) to one page’ is closed to new replies.