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
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.
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
-
This reply was modified 7 years by
12familyde.
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.
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 🙂
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!
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
WOW Calin, that would be great service! Looking forward to your next reply! 😉
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!
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/
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!
Great service Calin and much appreciated! For now the text hasn’t changed but I assume that has to do with the cache?
PS: it seems that it (still) in not ‘processed’ site-wide. Anything to take care of more?
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!
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
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?
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!
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?
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
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!
