-
Author
-
July 7, 2016 at 17:20 #128414dacam84Participant
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
July 7, 2016 at 17:47 #128420RaduModeratorHi,
1. You can enable author avatar for post meta from wp-admin -> theme options -> blog -> display meta fields
2. Use this function
COPY CODEadd_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 solutionJuly 11, 2016 at 13:29 #128749dacam84ParticipantThanks 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
July 11, 2016 at 16:42 #128780dacam84ParticipantAlso 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
CheersJuly 11, 2016 at 18:41 #128815RaduModeratorHi,
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 solutionJuly 26, 2016 at 19:37 #130289dacam84ParticipantHi do i have to add css so that the image is full with ? maybe responsive to ?
thakns
July 26, 2016 at 19:49 #130292RaduModeratorIf 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 solutionJuly 26, 2016 at 19:57 #130293dacam84Participantyes i would like them to be full width and 700 px height always , doesnt matter if the size is not the correct.
thanks,
July 26, 2016 at 19:58 #130294dacam84Participantwhat is the css reference so i can play with it a little bit thanks
July 26, 2016 at 20:05 #130296dacam84ParticipantAlso how can i hide the default featured image since its repeated now with the cover image. thanks
July 26, 2016 at 20:24 #130298RaduModeratorHi,
Please replace that function with this
COPY CODEadd_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 solutionJuly 27, 2016 at 13:07 #130374dacam84ParticipantPerfect 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
July 27, 2016 at 17:29 #130410RaduModeratorHi,
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 solutionAugust 1, 2016 at 12:09 #130860dacam84ParticipantHi 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.August 1, 2016 at 17:22 #130889RaduModeratorHi,
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 -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.