Skip to content

Instantly share code, notes, and snippets.

@bigdigital
Last active February 6, 2018 14:55
Show Gist options
  • Save bigdigital/518a1942ac81877d74969bd859876c97 to your computer and use it in GitHub Desktop.
Save bigdigital/518a1942ac81877d74969bd859876c97 to your computer and use it in GitHub Desktop.
The7 rewrite portfolio link
function my_dt_portfolio_thumbnail_args($thumb_args) {
$thumb_args['wrap'] = '<a %HREF% %CLASS% %TITLE% %CUSTOM%><img %IMG_CLASS% %SRC% %ALT% %SIZE% /></a>';
return $thumb_args;
}
add_filter( 'dt_portfolio_thumbnail_args', 'my_dt_portfolio_thumbnail_args', 10, 1);
@bigdigital
Copy link
Author

<script> jQuery(document).ready(function($){ $.fn.disableforwardToPost = function() { return this.each(function() { var $this = $(this); if ($this.hasClass("this-ready")) { return; }; $this.addClass("this-ready"); }); }; $(".mobile-false .rollover-project.forward-post").disableforwardToPost(); }); </script>

this js allow to disable clicke event for portfolio pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment