This topic has 20 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #110263
     csloan
    Participant

    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

    #110265
     csloan
    Participant

    Now, 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 page

    Or 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

    #110277
     csloan
    Participant

    see attached screen shot of settings in theme options >> blog

    Attachments:
    You must be logged in to view attached files.
    #110419
     csloan
    Participant

    Forget 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)

    #110611
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #111871
     csloan
    Participant

    Just 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!

    #112015
     Radu
    Moderator

    Hi,

    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 CODE
    
    body.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 solution
    Attachments:
    You must be logged in to view attached files.
    #112113
     csloan
    Participant

    I 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.
    #112192
     Radu
    Moderator

    Your 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 solution
    #118894
     csloan
    Participant

    I 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.
    #119373
     Radu
    Moderator

    Hi,

    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 solution
    Attachments:
    You must be logged in to view attached files.
    #119378
     csloan
    Participant

    So I should upload this new attached file instead?

    #119381
     csloan
    Participant

    Well 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.

    #119391
     Radu
    Moderator

    The 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 solution
    #119392
     Radu
    Moderator

    And 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 solution
    #119399
     csloan
    Participant

    When 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.
    #119547
     Radu
    Moderator

    Deactivate 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 solution
    #119617
     csloan
    Participant

    OK…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.
    #119720
     Radu
    Moderator

    Hi,

    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 solution
    #119739
     csloan
    Participant

    That’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.

    #120014
     Radu
    Moderator

    Hi,

    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
Viewing 21 posts - 1 through 21 (of 21 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?