[Resolved] closing div without opening

Home Forums Support [Resolved] closing div without opening

Home Forums Support closing div without opening

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #815208
    Hans

    </div><!-- .generate-columns-contaier -->

    This div clause I found in the page generated by “The event calendar” – see attached link. But there is no clause opnening that

    as far as I investigated the page. This is the code at the end of the content part.

    <!--
    Dieser Kalender wird durch The Events Calendar generiert.
    http://m.tri.be/18wn
    -->
    		</div><!-- .entry-content -->
    
    			</div><!-- .inside-article -->
    </article><!-- #post-## -->
    </div><!-- .generate-columns-contaier -->		</main><!-- #main -->

    The

    seems to be the reason of the failure in the layout. The sidebar is below the content.

    Is the clause generated by Generatepress or by the plugin?

    GeneratePress 2.2.2
    GP Premium 1.7.7
    #815391
    David
    Staff
    Customer Support

    Hi there,

    that is created by GeneratePress for when columns are being used on archives. Can you temporarily disable the Columns option in the Customizer > Layout > Blog to see if it fixes the problem. If it does we can provide a filter to switch off columns for those archives.

    #815423
    Hans

    Hi David,

    I followed your advice. Nothing changed!

    But I found the reason. It is this snippet:

    add_action( 'wp', function() {
        add_filter( 'generate_blog_masonry','tu_portfolio_masonry' );
    } );
    
    function tu_portfolio_masonry( $masonry ) {
        $taxonomies = array(
            'amtingemeinde',
            'ansprechpartnerin',
            'aufgabe',
    	    'funktionov',
    	    'mandat',
    	    'fraktionov',
    	    'ausschuss',
        );
    
        if ( is_tax( $taxonomies ) ) {
            return true;
    	    exit;
        }
      
        if ('tribe_events' == get_post_type()) {
    	  	return 'false';
    	    exit;
    	}
    
        return $masonry;
    }

    The function reurned true – with false it’s okay right now.

    Thanks for your support.

    #815435
    David
    Staff
    Customer Support

    Ah ok, awesome glad you found the issue and the solution 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.