Caption on feaured images

Posted in: Newspaper
Post count: 73

Hi there,

after switching back to a tagdiv-theme, I realised, that the caption of the featured images are not shown on articles. I really would need this, as the copyright informations of each image is shown with this function. Is there an otion within the themepanel, which I did not find? Or do I have the chance to do some custom code trick, to show these informations?

Best and warmest regards
Torsten

Post count: 35449

Hi,

You need to reset the feature image and set caption for them.
Or you can click on the feature image to edit
https://www.screencast.com/t/38RnkY5F

Thank you for your understanding.

Post count: 73

Hi Calin,

I of course have set captions to our featured images. The thing is, that they not show up on some post styles. Only on default one, style 1 and style 2. All other post styles hiding the caption. Which means, that we would have to edit nearly 2000 posts to change the post styles, if we dont find a solution for this …

Best regards
Torsten

Post count: 35449

Hi,

Please provide some screenshots from the set posts with captions, and a link to the website where I can see the problem, that would be very helpful.

Thank you for your understanding.

Post count: 31

I am facing the same, however using the default site post template style 8. Any chance we can put the caption text behind the number of views?

PS: from coming Sunday the website will be live so I can show you exactly what I mean.

Post count: 35449

Hi,

Until your website will be live, please provide some screenshots with this problem, in this way I will be able to make some investigation and provide an answer.

Thank you!

Post count: 31

Hi Calin, it is not a big problem but it would give the right person the credits he/she owns.. Coming Sunday the site will be live and I will remind you too 🙂

Post count: 35449

Hi,

Please notice that some of our default template are using the featured image as background, one of those style is style 8 -> https://www.screencast.com/t/AkMKHFjtYJe. In order top show the capitation under the view number you need some custom work.

Thank you for your understanding!

Post count: 31

Hi Calin,

The site is live now (www.deventervoetbal.nl) and you will see what I mean. I read your mail and understand it, however I hope for a ‘workaround’ solution.

Mark

Post count: 35449

Hi,

From what I see what you need can be achieve only with custom work, but I will give a try and maybe I will be able to provide you something that can help you!

Thank you for your understanding!

Post count: 31

WOW Calin, that would be great service! Looking forward to your next reply! 😉

Post count: 35449

Hi,

So in order to show the caption of feature image in style 8 you need to set this code in wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php like this https://www.screencast.com/t/xHF7eYUp after that in wp-content/plugins/td-composer/legacy/Newspaper/parts/single/single_template_8.php you need to add this line of code
<?php echo $td_mod_single->get_image_caption(); ?>
like this https://www.screencast.com/t/Lk8hQvnxUNCX after that add a custom color like this -> https://www.screencast.com/t/P8pGFfYSDnLe -> https://www.screencast.com/t/m9DNkH3KEZX

Thank you!

Post count: 31

Calin, great support. I thank you very much!! Though: the text shows in light grey color now and is hardly readable.. How can we set it to white? 😉 And can it be non-cursive..?

for example https://www.deventervoetbal.nl/goaheadeagles/go-ahead-eagles-delft-onderspit-in-eindhoven/

Post count: 35449

Hello,

For this will need to use a custom css like this one -> http://prntscr.com/p11mj7
.wp-caption-text{
color: white;
font-style: normal;
}

The code need to be set in Theme Panel> Custom code>Custom css
If you want you can set more style on text, here is some documentation -> https://www.w3schools.com/css/css_text.asp

Hope this will help you!
Thank you!

Post count: 31

Great service Calin and much appreciated! For now the text hasn’t changed but I assume that has to do with the cache?

Post count: 31

PS: it seems that it (still) in not ‘processed’ site-wide. Anything to take care of more?

Post count: 35449

Hi,

Make sure that you set the code in Theme panel> Custom code> Custom css and you clear all cache after you save the settings.
Also you can try this one, is stronger
.single .wp-caption-text{
color: white;
font-style: normal;
}

If there is still a problem, please provide me some screenshots with the implementation you’ve med for that css.

Thank you!

Post count: 31

Hi Calin, let me show you what I have/did..

Capture 1 https://prnt.sc/p1qsg8 shows one of our recent articles
Capture 2 https://prnt.sc/p1qt1i shows the settings of the pic (via media)
Capture 3 https://prnt.sc/p1qthm shows the CSS (including a color setting I made)
Capture 4 https://prnt.sc/p1qtvr is the template setting.

In some cases it shows as desired (https://www.deventervoetbal.nl/goaheadeagles/jenthe-mertens-versterkt-ga-eagles/) and in others not at all.. Is there something I do wrong?

Mark

Post count: 35449

Hi,

That implementation should work for all posts that have set the post template 8, just make sure that you clear all cache and you purge all cache.

Thank you!

Post count: 31

Hi Calin, after updating to version X earlier today, this setting has disappeared but the custom CSS code is still there. How comes and how can we restore it?

Post count: 35449

Hi,

That is because the changes was made the theme core, after the update all these changes were removed, so you’ll need to make these settings again, also you can use the child theme, in this way you should not have problems to the next update.
You need to set back the code in wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php and the single_template_8.php was moved in wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_8.php

Thank you!

Post count: 31

Hi, since that I applied the 10.2 Newspaper version earlier this afternoon, the added code for the caption of the image creates an error. The page looks like (isn’t but looks like it) the mobile version and the warning is ‘Uncaught Error: Call to undefined method td_module_single::get_image_caption() in /home/deventervo6137/public_html/wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_8.php on line 35’

So I have removed the code from the file mentioned above and now it is back to normal again, except the caption of course.. Any recommendation?

Post count: 35449

Hi,

Please provide me a link where I can inspect this problem, in this way I will be able to help you!

Thank you!

Post count: 31

Hi Calin,

I would love to, but that means the site is not working properly.. So can we simulate it in another maybe, agree upon a fixed moment (so that it isn’t working fine for a few minutes) or how to do it?

Mark

Post count: 35449

Hi,

I’ve made some tests and for me the caption is working properly https://i.imgur.com/zg5U09j.png -> https://i.imgur.com/t18nQB5.jpg that’s why I need some more details about this problem, to can try to recreate it, in this way I will be able to provide a solution.

Thank you!

Viewing 25 posts - 1 through 25 (of 32 total)
You must be logged in to reply to this topic.