• Resolved Tobi78

    (@tobi78)


    Hi,

    I want to change the position of the title and the post meta in a single post. On the top of the post should be the post meta line, next line the title and then the post. Unfortunately I can not find where to change these parameters. Is it in postmeta-layout.php? I think I have to change the div-containers, but I can not find it.

    Thank you for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author 4bzthemes

    (@4bzthemes)

    Hi,
    That’s almost right, you need to change the positioning in the postmeta-layout.php file, but also in the layout-item-wrapper-begin.php file. Single post pages are different, the post title is either displayed in the page header, if enabled, or the main posts divider. To change this behavior, you will have to modify the single.php file.

    Thread Starter Tobi78

    (@tobi78)

    Thank you for you answer. Unfortunately I have not solved so far.
    The title is not displayed in the page header, I think.

    When I delete in single.php the lines

    <header class="page-header">
    	<h1 class="page-title"><?php echo $page_header_title; ?></h1>
    </header>

    nothing is changing.

    Below there is the line

    $blogcentral_layout_opts['show_title']

    Setting it to ‘false’ the title is off. Same with date and tags and other post metas. I can switch it off. But I can’t change the position of title and post-meta …

    Theme Author 4bzthemes

    (@4bzthemes)

    I will only point you in the right direction, as your question falls under user modifications, which are not supported. If the page header is enabled, the post title will be displayed in the page header on single post page. As far as changing the position, you have to look at the postmeta-layout.php and layout-item-wrapper-begin.php files.

    Thread Starter Tobi78

    (@tobi78)

    Thank you. Now I got it:

    In the postmeta-layout.php I had to move the $content_frag into the $blogcentral_meta_content

    So now it is that way:

    if ( $content_frag || $blogcentral_meta_content || $share_frag ) {
    	if ( ! empty( $blogcentral_layout_opts['post_meta_btm'] ) ) {
    		$blogcentral_meta_content = $blogcentral_meta_content . $share_frag;
    	} else {
    		$blogcentral_meta_content .= $share_frag;
    	}
    }
    
    if ( $meta_layout_frag ) {
    	$blogcentral_meta_content = '<div>' . $blogcentral_meta_content . $meta_layout_frag . $content_frag . '</div>';
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change the position of title and post meta’ is closed to new replies.