-
Author
-
March 14, 2016 at 04:38 #110263csloanParticipant
I have the option set that I want the featured image to automatically post at the top of the post…I want this. But is there any way for the caption of the featured post to show at the bottom of the image if there is a title for the image? I need the photo credit and/or photo description to show and don’t want to have to alter the option of having the featured image be automatically placed at the top of its post.
Thanks
Chris
March 14, 2016 at 05:03 #110265csloanParticipantNow, after posting this question, I am having a weird issue. I tried adding a plugin that supposedly shows the title of the featured image on the post. It didn’t work, so I deleted the plugin. But now the featured image is not showing at the top of each post. Where exactly do I turn that back on? I can’t seem to find it. I looked up theme settings >> blog and the only setting I see that seems related to this, and is already set to ON is:
Display media on post page*
If you want to show image/gallery/video/audio before the post on single pageOr is this option somewhere else? I am not even sure why it’s off or not working now though….I didn’t change anything but add, then delete a plugin.
Thanks
March 14, 2016 at 08:45 #110277csloanParticipantsee attached screen shot of settings in theme options >> blog
Attachments:
You must be logged in to view attached files.March 14, 2016 at 18:43 #110419csloanParticipantForget the last two posts. There was another “add caption to featured image” plugin that I had activated and not deactivated when I ran into the issue described above. I deactivated this plugin and now the featured image shows at the top of the post. So, issue with featured image is solved.
But I still would like to know how I can add a caption to the featured image (especially when the two plugins I tried did not accomplish this, and one of them totally removing the featured image from the top of the post)
March 15, 2016 at 03:45 #110611LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 20, 2016 at 21:32 #111871csloanParticipantJust checking in to see if the higher support level has any answers to this question yet. I see online there are ways of coding sites so the featured image does have a caption, however I don’t know where to add such code in the Kleo theme. Furthermore, a featured image is usually added to WordPress to act as a thumbnail for the story in the menus around the site. In this case I need only to show a caption on the featured image that is auto posted at the top of each post (per the feature of Kleo).
And any plugin that I have tried that says it can accomplish this has caused the featured image at the top of the post to not show at all.
Thanks for your continued help!
March 21, 2016 at 18:21 #112015RaduModeratorHi,
I will provide you a solution for start, for advanced customization you will have to hire a developer.
Upload the attached file (content.php) after you will unzip it to wp-content/themes/kleo-child/
NOTE : The child theme should be installed and activated
Add this css to wp-admin -> theme options -> general settings -> quick css
COPY CODEbody.single-post .article-media { position: relative; } .kleo-excerpt_over_featured_image { position: absolute; padding: 50px 100px; font-weight: bold; font-size: 1.3em; line-height: 1.5em; color: #FFF; }
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.March 22, 2016 at 03:51 #112113csloanParticipantI added the code above to the CSS Stylesheet editor of the child theme and it still doesn’t show the image caption for the featured image at the top of the post. See attached screenshot…did I add it correctly?
Attachments:
You must be logged in to view attached files.March 22, 2016 at 16:02 #112192RaduModeratorYour child theme is activated ? do you have added the attached file to your child theme ?
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 25, 2016 at 22:40 #118894csloanParticipantI am re-opening this ticket because I had not yet uploaded the attached file to wp-content/themes/kleo-child. So today I extracted the attached content.php_ folder you gave me and added the code to custom CSS section and it still does not work.
1. Previously, in my response to you above, when I said that it did not work, I had not uploaded the content.php_ folder to my site. Now I have. Note, just in case it’s worth mentioning, I renamed the folder “content.php” deleting the “_” at the end, but that caused a major error on the page. So I added the underscore back to the end of the file name and page loads fine now….but no caption.
2. Child theme is activated and the folder you sent was unzipped, then uploaded to the “kleo-child” folder.
3. I tested this at: http://freedomleaf.com/cannabis-reform-takes-root-in-mexico-and-south-america/
and added a caption in every field allowed (just to test) See screenshot. And what I added is not showing on the page itself.What have I done wrong?
Attachments:
You must be logged in to view attached files.April 27, 2016 at 23:28 #119373RaduModeratorHi,
There was a problem with displaying the featured image image metas, now it should be ok
It will display these options image caption and image description.Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.April 27, 2016 at 23:37 #119378csloanParticipantSo I should upload this new attached file instead?
April 27, 2016 at 23:42 #119381csloanParticipantWell I did that…uploaded the new file “content_ok.php” unzipped to my kleo-child folder. Still no change in the captions appearing in the featured image. Code is still there in custom CSS.
April 28, 2016 at 00:04 #119391RaduModeratorThe filename should be content.php and upload it to child theme to not be overwritten on theme update also make sure that Kleo Child theme is installed and activated
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 28, 2016 at 00:06 #119392RaduModeratorAnd also make sure that the feature image has completed the caption area or description area
It works,i’ve tested
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 28, 2016 at 00:24 #119399csloanParticipantWhen I change the name of the file to be just content.php I get the following error on the post page (with not content, just the following error):
Warning: require(/home/freed0mlea7/public_html/site/wp-content/themes/kleo-child/content.php): failed to open stream: No such device in /home/freed0mlea7/public_html/site/wp-includes/template.php on line 574
Fatal error: require(): Failed opening required ‘/home/freed0mlea7/public_html/site/wp-content/themes/kleo-child/content.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/freed0mlea7/public_html/site/wp-includes/template.php on line 574
The folder is in the Kleo Child folder and Kleo child is activated. See screen shots
Attachments:
You must be logged in to view attached files.April 28, 2016 at 16:58 #119547RaduModeratorDeactivate child, delete content.php, upload content.php from archive with name content_ok.zip and activate back child theme
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 28, 2016 at 21:20 #119617csloanParticipantOK…I did that. Deleted the content.php_ folder from the Kleo Child theme folder. Deactivated Kleo Child. Uploaded the unzipped file of content_ok.php…..And I assume also that the file needs to be renamed from content_ok.php_.zip to “content.php”. Then reactivated Kleo Child. Right?
Didn’t work. Same issue on the page with the error. See attached screenshot.
(In the meantime I have renamed the file back to content.php_ until issue gets resolved. I can’t leave the site with those errors)
Attachments:
You must be logged in to view attached files.April 29, 2016 at 20:05 #119720RaduModeratorHi,
Very odd issue, on my server and also on localhost this is works, i think is something related to permissions, try to give 755 permission to that folder and 644 to the content.php file
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 29, 2016 at 21:15 #119739csloanParticipantThat’s strange. So as far as you can see I’ve done everything correctly? That’s why I included screen shots, to be sure and show you.
The file permission for kleo-child was already set to 755….so was content.php. So I changed the content.php file permission to 644, then removed the underscore “_” at the end of the file name…..and same issue. I get the same page error as screen shot shows above.
May 3, 2016 at 16:00 #120014RaduModeratorHi,
Maybe is something related to your server ?
Please try to do this :
Go to parent theme and save the content.php file ( wp-content/themes/kleo/content.php ) then add the file that i have provided to you in wp-content/themes/kleo/
Check to see if it works, it should work also on the child theme…but odd
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.