hi Lely
I think I may have come up with a completely different method of doing exactly what I want using the dynamic builder and global blocks after watching a Pro user named Benedict Ursal build a dynamic template to control post title, featured image and post content
So the basic concept is to create a blank single.php file in the child theme folder and add the following
<?php get_header(); ?>
<?php echo do_shortcode(''); ?>
<?php get_footer(); ?>
The shortcode for the global block goes in the second line. It is this global block which will create the posts look
The functions.php file has this added to allow pulling in the posts content
function dc_post_content( $atts ){
global $post;
return do_shortcode( $post->post_content ); ?>
}
add_shortcode( 'dc_post_content', 'dc_post_content' );
My plan is to create a template with 2 columns, one will be 75% and the other 25% (those % can change depending on the look). The post title, featured image and post content can be in the 75% column with the 25% column to be used to look like a sidebar. The content layout in layout and design will be full width thus removing the real sidebar. The beauty of doing it this way is I can use padding or margins to move the content to the left so the main post content aligns correctly with the footer. There will be the appearance of a sidebar without there really being a sidebar
Post title is added using this {{dc:post:title}}
Post featured image is added using this {{dc:post:featured_image}}
and to add post content [dc_post_content]
is added. It is not a native Pro or X code, but probably should be in the dynamic content area in the future, I think.
Now I can have absolute control over where I place the featured image, where the title and more importantly, I can adjust the post content the way I want it to be, regardless of stack
Having seen the video, does this seem like a feasible way to approach such a problem?
Thanks again