• So I bought a 70$ theme which I thought looked pretty nice. Simple and clean. I run a site that focuses on the images and all 650 posts (which I had already made prior to switching to this theme) have a featured image. Problem is that for each post the featured image is show not only cropped in a format decided upon by the theme creator but also with the post title overlaid and with a black 90% transparent overlay causing the photos to appear dimmer than they are.

    Now. The theme creator wont help. They just said that making the featured image clickable can’t be done done for single posts (of course it can, they just don’t want to write the line of code). Question is can I do it myself with your help… Either through code or with a plugin perhaps?

    In my previous theme, the featured image was made clickable by editing single.php.

    I found this reference to the featured image in my current single.php, but nothing more: <?php barcelona_featured_img(); ?>

    How do I track down the code that displays the featured image?

    Where should I start?

Viewing 2 replies - 1 through 2 (of 2 total)
  • As it’s a commercial product, there won’t be many people who have access to the theme in order to offer you help I’m afraid.

    I would suggest that you search any additional files from within other folders (such as inc, includes maybe?) for the term barcelona_featured_img, it will be somewhere as its being referenced.

    Also, if you right-click your website and select Inspect Element, you can inspect your sites’ code structure and view all CSS styles that are applied to the currently selected element. This will allow you to locate the areas you wish to modify and find the appropriate classes to use.

    Hope this helps.

    • This reply was modified 8 years, 5 months ago by ThemeSumo.
    Moderator bcworkz

    (@bcworkz)

    Like ThemeSumo suggested, you should be able to adjust the CSS to eliminate the 90% transparency. While you can directly edit the theme’s CSS, you could lose your changes if the theme should be updated. Some themes have a setting for adding custom CSS to avoid this issue. Another way to protect your changes is to create a child theme, but if your theme is framework based, it’s probably already installed as a child. You cannot create grandchild themes, though a custom plugin might be an option.

    The best way to find the function declaration for barcelona_featured_img() is to use grep to search for “function barcelona_featured_img”. You’d need terminal access to do this on your server, which is unlikely. You could use grep on a local copy of your theme, except it’s a ‘nix command. I believe an equivalent command can be installed for Win systems, or start up your PC using a Linux bootable USB stick.

    Just about anything is possible if one has adequate access to your site and is knowledgeable enough, but such access is beyond the scope of these forums. If you really get stuck, you could hire professional help at jobs.wordpress.net and grant them the necessary access.

    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make featured image clickable’ is closed to new replies.