Create your own blog index page in Builder

Why: Although builder generates a blog index page using the content module, in some cases you might want to create your own listing of blog posts. Perhaps to select posts only from a specific category, or for whatever other reasons you can think of.

How: query_posts is a WordPress function that allows you to write your own WordPress loop. In Builder, the easiest way to create such a blog page is to

Important Note 1: the actual content part (post header, date and content) is simplified, refer to the Child Themes index.php to see how it is actually coded for that specific Child Theme.
Important Note 2: the content is displayed using the_content_limit(250, "more »") (see highlighted line), a function described in another tip on this page. You can use the_content() or the_excerpt(), depending on your requirements.

Limit the content of a post that is displayed on a blog index page

Why: In some cases, the_content() or the_excerpt() just don't fit your requirements.

How: Using a new function allows you to specify the number of characters you want to display on the blog index page, and what to use as the "more" text. Add the following function to your child theme'sfunctions.php.

Add a full width Header and/or Footer to your Builder theme

Use a 100% width background for one or more modules

Why: You have a design that requires that one or more modules have a background wider than the layout width.

How: Using just CSS, the width of the container and the modules can be expanded to 100%; however, it will be difficult to style specific modules this way. The solution is to first remove the width limitation of both the layout container and each module's outer wrapper and then add a new div that constrains the module content to a specific width and centers it again.

Note that the '<?php' and '?>' lines only needed to be used if the code is added inside of existing '<?php' and '?>' tags.

The following screenshot shows Builder Child Default after this code was added to a new functions.php file.

The "add module specific rules here" comment in the custom_remove_module_width function above marks an area that could be used to limit the full-width background to specific modules. For example, the following modification of the custom_remove_module_width function results in only the Navigation modules getting full-width module backgrounds.