SUGGESTION: Header and Footers
Brizy,
I am ranked Master in WordPress according to Experts-exchange.com...
Reason why I am saying this is because I wondering how many of my posts get read, considered, or even submitted. And I have been submitting a lot of BUGS, REQUESTS, SUGGESTIONS, ISSUES.
This is because I really love your product and want to help you help me help us.
So I have been spending some time fixing your Brizy Starter template to work with Brizy. I want to make it so I can use it with all my developments.
So on to my suggestion..
Out of all the different blocks made Global blocks, the Header and footer should be Super Global as in unique. Users should be able to assign a header and a footer as such so they wouldn't have to included them each time on a Brizy page.
This is also useful when want to use Standard WordPress elements and things with Brizy. For instance:
/**This is all that's needed to use Brizy in a template (seems as if Brizy automatically passes the ID). But if I wanted to add another plugin into the Brizy area, I couldn't unless I add a shortcode into Brizy or break up the_content() function. So if there was a way to make a section (CPT) into the Brizy plugin to allow for unique Headers and Footer with a ID I could do something like this to my template file:
* The template for displaying all single posts
*/
get_header();
/* Start the Loop */
//while ( have_posts() ) :
//the_post();
the_content();
//endwhile; // End of the loop.
get_footer();
/**
* The template for displaying all single posts
*/
get_header();
//Add Brizy Header
brizy_template("1"); <--Header ID
the_content();
brizy_template("2") <-- Footer ID
get_footer();
I am sure there are other ways to do this but never-the-less the suggestion is still something of importance.
-
Hi Sam,
we really appreciate your involvement. I forwarded this to devs and they will analyze the implementation of your suggestion. Thank you!
0 -
Thanks Alex..
So in order to really streamline, please consider using at the top of a Brizy Template file inside Plugin:
<?php /* Short and sweet */ define('WP_USE_THEMES', false); require('./wp-blog-header.php'); ?>OR
<?php require('/the/path/to/your/wp-blog-header.php'); get_header(); ?>You can limited the load heavy things WordPress by defining this somewhere to template page:
define( 'SHORTINIT', TRUE );0 -
Any thoughts on the Global Header and Footer?
0
Please sign in to leave a comment.
Comments
3 comments