Main Page Width
The KB Main Page is generated using a shortcode, such as [ epkb-knowledge-base id=1]. This shortcode should be inserted on a page. The width of the output, or the KB main page, can be adjusted to certain extent. Instructions for adjusting the width of the KB main page are provided below.
The search box has two settings: full width or boxed width.
Note: If you are having issues with the full width option see the troubleshooting section below.
Search Box Width
The boxed width option will set the box max width to 1080px and it will match the KB Category container width.
The full width option will set the box max width to 100% and it will go as far as the theme allows it to. In this example, it is 1920px.
Search Box Width Settings
There are two locations to edit Search Box width:
KB Categories Container Width
The KB category container show the articles and their category names.
The container has a fixed value of 1080px max width. It will not exceed that width regardless of any other factors such as theme settings or how many categories columns are in the KB. It will, however, get smaller on smaller screen sizes.
There are currently no settings to change this value. However you can override it with custom code. See our article click here for the custom code.
A common question:
“my KB Search box won’t go full width even though its set that way and other elements on the page do go full width.
In this example, the user is has Elementor page builder, and KB shortcode was inserted into the Elementor section. However Elementor's section width was not adjusted.
Go to the Elementor section settings and adjust your content width to Full width.
Block Themes Width Adjustments
If the width of your knowledge base isn’t taking up the whole page or isn’t as wide as you’d like, and you’re using a block theme, it’s the theme that’s deciding how wide the page should be. Your knowledge base can’t be wider than what the theme allows. The theme controls how wide your entire website appears. This section will guide you through adjusting some width settings for your pages, enabling you to expand the overall space for your knowledge base to make it wider.
In this part of the article, we present two solutions:
Solution 1: Modify the page template specifically for the knowledge base page. This is a good choice if you only want to change one page and not all the others. However, you’ll need to make additional adjustments to the template. This involves adding headers, footers, and any other missing elements to the template. In essence, you’ll be creating the template anew. Click here
Solution 2: Adjust the page template for the entire website, ensuring a consistent width for all pages. This is an easier change to make, but it will affect the entire site in terms of appearance. Click here
Here's an example of the problem with how block themes control their width settings.
A block theme is a WordPress theme with templates entirely composed of blocks so that in addition to the post content of the different post types (pages, posts, …), the block editor can also be used to edit all areas of the site: headers, footers, sidebars, etc.
You can locate Block themes by accessing the WordPress filter tab on WordPress.org or by navigating to the theme page within the administrative interface.
Changing Knowledge Base Page Width Settings
These steps will guide you through modifying the page of your knowledge base. Keep in mind that additional adjustments will be needed to make your this page template look consistent to others.
Changing Page Templates Width
These steps will guide you in adjusting the width settings of your page template, which will impact the appearance of your entire website.