Need Help with Design

Are there any ways to build this type of templates, for my all existing posts using Pro?

Hi Saswata,

Please do give us more details when you say templates. This way we can be specific with our recommendation. If you are referring to header or footer templates for posts, yes that is possible. You can check and watch our header and footer series on our youtube channel. We can assign header and footer specifically for post.

For content, we can save a specific content as templates and we can use it on another posts. See this:

https://theme.co/docs/template-manager
Although, that is not the general wordpress template where once you create it and load it on your child theme it will work on all your posts. If that is what you are looking for, that is not possible with PRO content builder. The builder edits the content inside the main content area but not the entire structure of your post. The structure of your post is defined by your settings on THEME OPTIONS and the stack you where using.

For more detailed guidance, please check our documentation.

Thanks @lely

I added an extra bar after the main header only for posts, so is it possible to fetch the Title, and Post Meta, inside this black bar?

Hello Saswata,

Absolutely, you can do so my making use of the Dynamic Content feature.

Please check this link for more information about the feature:

In case you are not seeing the Dynamic Content option to the elements, please make sure it is enabled. You can enable it by clicking on the cog icon

Hope this helps.

Thanks @jade for helping me, but in this process I got some issue here are those:

Here is my global Header. It works for normal pages like:

  1. https://learnmechanical.com/about-us/
    But for search query and category pages “POSTS” header fetched don’t know why, and its break my design, here is SS:

and here is category page screenshot:

In both the cases, “POSTS” header is fetching instead of Global.

Can you able to help me out?

Also sometime I see that Written By: Author Name Missing.

Hi Saswata,

Thank you for writing in, you can follow the guide provided here to assign a specific header for your search and category page.

The condition for category (archive) page is is_archive()

Hope it helps,
Cheers!

Picture Perfect @friech, X-Theme and you guys are awesome! :slight_smile:

However seems like you missed my another query " Also sometimes I see that Written By: Author Name Missing."

When I observed the issue little carefully seems like, the posts which are written by me only shows the Name, else other posts which written by some other authors are not displayed.

My Written Post: https://learnmechanical.com/hydraulic-clutch/
Some other writer post: https://learnmechanical.com/nuclear-power-plant/

Can you help me in the right direction? Thanks Much!

ops seems like there is an error while saving the function.php code.

As I add the category page header, and then I want to add the search result page header, so what will be the function for this?

second: https://learnmechanical.com/blog/ this URL where it is set the blog post page in the Wordpress setting, is not getting the global header. Also please help me to do this.

And sorry for the Bombard of Writing, my apologies.

Hello Saswata,

You cannot add two functions of the same name as it would cause and error just like what you are doing, you have two custom_search_header() function.

You can combine them into one like this:

add_filter('cs_match_header_assignment', 'custom_search_header');

function custom_search_header($match) {
	if (is_archive() || is_search() ) {
		$match = 5263; // the post ID for your header
	}

	return $match;
}

Kindly note that since this is a custom code that changes the default behavior/display of the theme, you will be responsible to maintain or update the code in case you require further changes or if the code stops working in future updates. If you are uncertain how to proceed, it would be best to get in touch with a developer.

Hope this helps.

Thanks Much,

Everything seems fine, rather than this URL: https://learnmechanical.com/blog/, still it fetched the Post header instead of Global header.

P.S.: This URL set as a default URL for blog posts.

Can you help me with this? or what will be the condition?

Thanks.

Hello Saswata,

Since you already assigned the header and there is no other way to investigate the header assignments, kindly provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/docs/getting-support

Regards.

Hello there, I recently give you the access on this thread, Issue with dynamic data

P.S.: Please clear cache for certain URLs via Cloudflare, otherwise header builder not open or certain pages are not updated, because we are using Cloudflare Edge to Edge cache page rule, that mean JS, CSS even HTML files are cached in cloudflare

Hi Saswata,

You do not need to write and custom code to assign a header to this page: https://learnmechanical.com/blog since this is your Post Page which you have set in WP Admin > Settings > Reading :
Your homepage displays - Static page
.

You can easily go to your Header settings then set the header to the Post Page:

Hope this helps.

Thanks for quick prompts.

Learnmechanical.com/ -this is my home page, and it is static.
https://learnmechanical.com/blog/ - this is my post page.

https://learnmechanical.com/blog/” this URL fetched my Post Header, I want it to fetch my global header.

I set post header only for All Posts, not Posts Page. So am I need to create another header and set that for posts page? I think if I am not assigned a header to the “Posts Page” it should fetch that global header, is not it?

Hey Saswata,

I have replicated what you’ve described but I’m not sure if this is a bug so I’ll post this in our issue tracker so it will be queued for clarification regarding the logic of the feature.

For now, you need to create a header and assign it to the Posts Page.

Thanks.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.