Split: Use Saved Row or Template as Header/Footer

Hi Ben,

I did everthing you and Robbie explained and it looks good, except for one thing:
The text now appears as background in the new posts page and is aligned to the left. How can I have the text on the new posts page in a text editor (so I can align it and change the format) instead of as background? I am a beginner and I guess it has to do with the NEW single.php file and the new content file. I attach both files and would be really greatful for a feedback.

Here is the new single.php file (code content from the original full-width-page.php) and the page I insert there is called “beitragsseite”:

<?php
/**

  • Template Name: Full Width Page
  • @package Tesseract
    */

get_header();

?>

&lt;div id="primary" class="full-width-page no-sidebar"&gt;
	&lt;main id="main" class="site-main" role="main"&gt;

	&lt;?php echo do_shortcode( "[insert page='beitragsseite' display='content']" ); ?&gt; 


	&lt;?php if ( have_posts() ) : ?&gt;

		&lt;?php /* Start the Loop */ ?&gt;
		&lt;?php while ( have_posts() ) : the_post(); ?&gt;

			&lt;?php
				/* Include the Post-Format-specific template for the content.
				 * If you want to override this in a child theme, then include a file
				 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
				 */
				get_template_part( 'content-beitragsseite', 'single' );

				// If comments are open or we have at least one comment, load up the comment template
				if ( comments_open() || get_comments_number() ) :
					comments_template();
				endif;
			?&gt;

		&lt;?php endwhile; ?&gt;

	&lt;?php else : ?&gt;

		&lt;?php get_template_part( 'content-beitragsseite', 'none' ); ?&gt;

	&lt;?php endif; ?&gt;



	&lt;/main&gt;&lt;!-- #main --&gt;
&lt;/div&gt;&lt;!-- #primary --&gt;

<?php $layout_default = get_theme_mod( ‘tesseract_woocommerce_default_layout’ ); ?>
<?php if ( ( is_plugin_active(‘woocommerce/woocommerce.php’) && ( ( $layout_default == ‘sidebar-left’ ) || ( $layout_default == ‘sidebar-right’ ) ) ) ) get_sidebar(); ?>

<?php get_footer(); ?>

Now here is the NEW content file which I named content-beitragsseite.php:
<?php
/**

  • The template used for displaying page content in page.php
  • @package Tesseract
    */
    ?>

<article id=“post-<?php the_ID(); ?>” <?php post_class(); ?>>

&lt;?php if ( has_post_thumbnail() ) {
	
    $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'tesseract-large' ); ?&gt;
    &lt;div class="entry-background" style="background-image: url(&lt;?php echo esc_url( $thumbnail[0] ); ?&gt;)"&gt;
        &lt;?php if ( my_theme_show_page_header() ) : ?&gt;
            &lt;header class="entry-header"&gt;
                &lt;?php the_title( '&lt;h1 class="entry-title"&gt;', '&lt;/h1&gt;' ); ?&gt;
            &lt;/header&gt;&lt;!-- .entry-header --&gt;
      	&lt;?php endif; ?&gt;
    &lt;/div&gt;&lt;!-- .entry-background --&gt;

&lt;?php } else { ?&gt;

	&lt;?php if ( my_theme_show_page_header() ) : ?&gt;
        &lt;header class="entry-header"&gt;
            &lt;?php the_title( '&lt;h1 class="entry-title"&gt;', '&lt;/h1&gt;' ); ?&gt;
        &lt;/header&gt;&lt;!-- .entry-header --&gt;
    &lt;?php endif; ?&gt;

&lt;?php } ?&gt;

&lt;div class="entry-content"&gt;
	&lt;?php the_content(); ?&gt;
	&lt;?php
		wp_link_pages( array(
			'before' =&gt; '&lt;div class="page-links"&gt;' . __( 'Pages:', 'tesseract' ),
			'after'  =&gt; '&lt;/div&gt;',
		) );
	?&gt;
&lt;/div&gt;&lt;!-- .entry-content --&gt;

</article><!-- #post-## -->

Thank you.

[Content Hidden]

Split from http://forum.wpbeaverbuilder.com/support/q/use-saved-row-or-template-as-headerfooter/page/2/#post-113075

Hey Rainer,

We’ve experience an issue with the Insert Pages plugin lately. Can you try using our own Shortcode instead and see if it works? You can check the link below for more info.
http://forum.wpbeaverbuilder.com/knowledge-base/shortcodes/

If that doesn’t fix it, feel free to share the URL of the site in question along with temp admin access so we can check.

Ben

[Content Hidden]

Hi Rainer,

I apologise, but is it possible for you to provide a screenshot of what you’re trying to accomplish, please?

As I have visited this page and I am not quite sure what you’re trying to do.

Thanks,
Danny

[Content Hidden]

Hey Rainer,

Sorry to say but you’re already modifying the theme files, which in this case is Tesseract, and we have no idea how that theme works. I did visit the morgentest page and I can see the contents are aligned to the left. I edited the page using the page builder, published the changes, and that fixed it. Can you check and see if that’s what you’re looking for?

Ben

[Content Hidden]

Hi Rainer,

I apologise, but I am not sure what you’re referring to when you say “before” and “after” are you referring to this:

wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'tesseract' ),
				'after'  => '</div>',
			) );

If so, that code is related to pagination I believe. Therefore, I think the best course of action is to contact the Tesseract support team.

Thanks,
Danny