Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Sell22

    (@sell22)

    made a php with social-events.php and removed get_sidebar

    Sidebar is removes but the page is not full

    <?php

    get_header();

    $is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );

    /*
    Template Name: Full Page
    */
    ?>

    <div id=”main-content”>

    <?php if ( ! $is_page_builder_used ) : ?>

    <div class=”container”>
    <div id=”content-area” class=”clearfix”>
    <div id=”left-area”>

    <?php endif; ?>

    <?php while ( have_posts() ) : the_post(); ?>

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

    <?php if ( ! $is_page_builder_used ) : ?>

    <h1 class=”main_title”><?php the_title(); ?></h1>
    <?php
    $thumb = ”;

    $width = (int) apply_filters( ‘et_pb_index_blog_image_width’, 1080 );

    $height = (int) apply_filters( ‘et_pb_index_blog_image_height’, 675 );
    $classtext = ‘et_featured_image’;
    $titletext = get_the_title();
    $thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, ‘Blogimage’ );
    $thumb = $thumbnail[“thumb”];

    if ( ‘on’ === et_get_option( ‘divi_page_thumbnails’, ‘false’ ) && ” !== $thumb )
    print_thumbnail( $thumb, $thumbnail[“use_timthumb”], $titletext, $width, $height );
    ?>

    <?php endif; ?>

    <div class=”entry-content”>
    <?php
    the_content();

    if ( ! $is_page_builder_used )
    wp_link_pages( array( ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘Divi’ ), ‘after’ => ‘</div>’ ) );
    ?>
    </div> <!– .entry-content –>

    <?php
    if ( ! $is_page_builder_used && comments_open() && ‘on’ === et_get_option( ‘divi_show_pagescomments’, ‘false’ ) ) comments_template( ”, true );
    ?>

    </article> <!– .et_pb_post –>

    <?php endwhile; ?>

    <?php if ( ! $is_page_builder_used ) : ?>
    </div> <!– #left-area –>

    </div> <!– #content-area –>
    </div> <!– .container –>

    <?php endif; ?>

    </div> <!– #main-content –>

    <?php get_footer(); ?>

    I have exactly the same problem!
    Did you have resolve it?

    Johann

    (@waxsolutions)

    Hi guys,

    I had this problem until I realised that there is a background line to delimit the sidebar.
    You just need to get rid of it (background: #fff; width:0;)
    I hope that helped.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Events page no sidebar (full width)’ is closed to new replies.