Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #667847

    Hey 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,
    Basilis

    #667879

    Thank you for answering.

    I use the code, there is some line that can help me do what I need?

    Thanks so much.

    #668031

    Hi!

    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,
    Yigit

    #668148

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

    #668152

    Hey!

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

    #668319

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

    #670143

    Hi,

    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,
    Ismael

    #671091

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

    #672431

    Hi,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.