Change link icon

Hello, when you hover over a portfolio item two buttons show up on the bottom. One to view the image larger and the other to link you to it's page. Is it possible to remove the link icon and change that to an image of my own? Thanks.

Comments

  • Hey,

    similar solutions were already described on this forum so please take a look on http://forum.muffingroup.com/betheme/discussion/523/portfolio-page where we explained what files should be modified.
  • I've read that discussion and was very helpful in removing some of the buttons so thank you. But I should have explained better, what I meant was how to remove the small chain link icon. I want the button and linking ability to stay but to change that small icon to a custom image of my own or possible to text.
  • So if you want to change icon or text, you need to modify functions/theme-functions.php file. There is function called mfn_post_thumbnail(). You need to modify lines as below:
    $link_after .= '<a href="'. $large_image_url[0] .'" class="zoom" rel="prettyphoto[blog]"><i class="icon-search"></i></a>';
                if( $image_links ) $link_after .= '<a target="_blank" href="'. $image_links .'" class="external"><i class="icon-forward"></i></a>';
                $link_after .= '<a href="'. get_permalink() .'" class="link"><i class="icon-link"></i></a>';
    In each link icon is as example below:
    <i class="icon-link"></i>
    and you need to modify this part of file.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.