-
AuthorPosts
-
August 2, 2016 at 5:38 pm #667756
Good evening, I would like to question.
I would like to insert a header with an image category pages and post like this
How can I do?
Thanks so much.
August 2, 2016 at 9:42 pm #667847Hey TedalGroup!
That would need some customizations, which are not part of our Support Policy.
Please feel free to hire a freelancer, who will be able to assist tou further.Thanks a lot
Best regards,
BasilisAugust 3, 2016 at 12:16 am #667879Thank you for answering.
I use the code, there is some line that can help me do what I need?
Thanks so much.
August 3, 2016 at 2:10 pm #668031Hi!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if (is_single()) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }
Best regards,
YigitAugust 3, 2016 at 4:32 pm #668148Thank you for answering.
I pasted the code in functions.php but I can not figure out where to place the image to the post, categories, etc.
How can I do?
Thank you.
August 3, 2016 at 4:38 pm #668152Hey!
That would not be easily possible if you are not using Advanced Layout Builder to create your posts.
If you are, you can simply add a Color Section element and set your image as custom background and add Special Heading element inside that color section to display your post title.Cheers!
YigitAugust 4, 2016 at 12:20 am #668319Thank you for answering.
Writing the article in this way, not the author appears, date, category, and the form to the comments in the bottom of the article.
1. The code is first I still use it?
2. How can I fix?Thanks so much.
August 9, 2016 at 4:44 am #670143Hi,
Please remove the previous code then use this in the functions.php file instead:
add_filter('avf_title_args', 'avf_title_args_mod', 10, 2); function avf_title_args_mod($args,$id) { $attachment = wp_get_attachment_url( get_post_thumbnail_id($id) ); $title = get_the_title($id); if (is_singular('post')) { $color = '<div id="singlepost-section" class="avia-section main_color avia-section-default avia-no-shadow avia-full-stretch avia-bg-style-scroll av-minimum-height av-minimum-height-25 container_wrap sidebar_right" style="background-repeat: no-repeat; background-image: url('.$attachment.'); background-attachment: scroll; background-position: top center; " data-section-bg-repeat="stretch"><div class="container"><div class="template-page content av-content-small alpha units"><div class="post-entry post-entry-type-page post-entry-46"><div class="entry-content-wrapper clearfix"><div style="padding-bottom:10px;font-size:38px;" class="av-special-heading av-special-heading-h3 blockquote modern-quote modern-centered av-inherit-size"><h3 class="av-special-heading-tag" itemprop="headline">'.$title.'</h3><div class="special-heading-border"><div class="special-heading-inner-border"></div></div></div></div></div></div><!-- close content main div --></div></div>'; $args['html'] = $color; } return $args; }
Best regards,
IsmaelAugust 10, 2016 at 11:20 pm #671091Thank you for answering.
I just inserted the code shown and does not work.
I also tried to disable and re-enable the plugin Disqus and wrong.How can I do?
Thanks so much.
August 15, 2016 at 3:47 am #672431Hi,
You have to enable the Titolo testata e breadcrumbs and then make sure that you’re using the default editor instead of the advance layout builder for posts. Example here: http://raffaelecirillo.com/blog/test-post/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.