Remove "Permalink to" also from title

Hi there,

I found the way to remove the “Permalink to” from the portfolio page:
(function($) {
$(document).ready(function() {
$(’.x-portfolio a.entry-thumb’).removeAttr( “title” );
});
})(jQuery);

This hides the “Permalink to” if I hover over the image. But I still have this thing if I hover over the title…
How can I also remove this?

Thank you,
Michael

If you wanted to stick with jQuery, the following would do it:

(function($) {
  $(document).ready(function() {
    $('.x-portfolio a.entry-thumb').removeAttr( "title" );
    $('.entry-title-portfolio a').removeAttr( "title" );
  });
})(jQuery);

Your other option is to override the theme files with a child theme. The file in question would be content-portfolio.php

Perfect. Did it with overriding in child…

Thank you.

Me again :slight_smile:

Can you give me a hint, where I find the first one in a theme file? The hover over the portfolio picture?

Thank you,
Michael

Hello @mickna,

Under /wp-content/themes/X/framework/views/integrity/content-portfolio.php. Here you need to focus on line number 23 or search for class="entry-title entry-title-portfolio". After that I suggest you to refer following tutorial:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.