This topic has 14 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #128414
     dacam84
    Participant

    Hi,

     

    i have to questions:

     

    1) was wondering if there is a way that the avatar shows on the left of a single post, where the author meta is.

     

    2) I would like to have the featured image of a single post displayed as a wide cover foto at the top of a single post, Can this be achieved through a plugin? or how woudl this be possible?

     

     

    Cheers again

    #128420
     Radu
    Moderator

    Hi,

    1. You can enable author avatar for post meta from wp-admin -> theme options -> blog -> display meta fields

    2. Use this function

    COPY CODE
    
    add_action('kleo_before_main', 'sq7rdu_show_featured_before_content');
    function sq7rdu_show_featured_before_content() {
        if (is_single()) {
            if (has_post_thumbnail()) {
                return the_post_thumbnail('full');
            }
        }
    }
    
    

    The code will be added to wp-content/themes/kleo-child/functions.php

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #128749
     dacam84
    Participant

    Thanks for your answer,

    1) it worked 😉

    2) any suggestions on how to make the featured picture a cover photo on top of the single post?

    Cheers

    #128780
     dacam84
    Participant

    Also how can i disable the user capability to change a cover image in profile. I want to set the same image for everyone but dont let the users change it
    Cheers

    #128815
     Radu
    Moderator

    Hi,

    2. I’ve responded you ! You have not seen the second part of the message ?

    We don’t have such as option

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #130289
     dacam84
    Participant

    Hi do i have to add css so that the image is full with ? maybe responsive to ?

    thakns

    #130292
     Radu
    Moderator

    If the image are sufficient large no, if you need some small css adjustments provide post url to can see it

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #130293
     dacam84
    Participant

    yes i would like them to be full width and 700 px height always , doesnt matter if the size is not the correct.

    thanks,

    #130294
     dacam84
    Participant

    what is the css reference so i can play with it a little bit thanks

    #130296
     dacam84
    Participant

    Also how can i hide the default featured image since its repeated now with the cover image. thanks

    #130298
     Radu
    Moderator

    Hi,

    Please replace that function with this

    COPY CODE
    
    add_action('kleo_before_main', 'sq7rdu_show_featured_before_content');
    function sq7rdu_show_featured_before_content() {
        if (is_single()) {
            if (has_post_thumbnail()) {
                echo '<div class="fullwidth-image-before-content">';
                echo the_post_thumbnail('full');
                echo '</div>';
            }
        }
    }
    

    Then use this css

    COPY CODE
    
    .fullwidth-image-before-content img {
        width: 100% !important;
    }
    

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution
    #130374
     dacam84
    Participant

    Perfect thanks a lot, works 😛

    Another question, what would i have to do to have meta author info with link of/for instagram, facebook etc.

    Cheers for support

    #130410
     Radu
    Moderator

    Hi,

    You’re welcome

    If you want to add additional information there like meta author ? What are you asking it’s seems to be something custom… you can inspire from the function that i have provided to you 😀

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #130860
     dacam84
    Participant

    Hi thanks for the reply,

    I was actually looking to get something like this, (since it is very similar) i figured i would only add instagram.

    cheers

    Attachments:
    You must be logged in to view attached files.
    #130889
     Radu
    Moderator

    Hi,

    the thing that you are need, cannot be solved quick, it require custom development.. i hope you understand

    The file / function responsible for the author meta is : kleo/wp-content/themes/kleo/functions.php line 583 you can edit it and adapt it for your needs

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

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

Log in with your credentials

Forgot your details?