Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #717871

    Hi

    I have an issue with the page below. :

    I want the header on the calendar page above to be the same as the post below:

    which has the header on a white background stretching right across the screen.

    Whereas the title on the calendar is on a gray background.

    Grateful for any help.

    Jangdom

    #718837

    Hey Tarakbc,

    I changed following code in Quick CSS field from

    .single-calendar .title_container {
      display:none !important;
    } 

    to

    .single-calendar .entry-content-header {
        display: none;
    }

    Then i added following code to functions.php file

    add_filter('avf_builder_boxes', 'add_builder_to_posttype');
    
    function add_builder_to_posttype($metabox)
    {
    	foreach($metabox as &$meta)
    	{
    		if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
    		{
    			$meta['page'][] = 'calendar'; /*instead add the name of the custom post type here*/
    		}
    	}
    	
    
    	return $metabox;
    }
    
    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if ( $args['title'] == 'Blog - Latest News' )
        {
            $args['title'] = get_the_title($id);
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    Please review your website now.

    Best regards,
    Yigit

    #719324

    Great job! That solved it. Many thanks for your help :)

    Jangdom

    #719327

    Hey!

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Problem with title of calendar blog post (2)’ is closed to new replies.