Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #884039

    Hi there,

    Writing regarding Yigit’s earlier solution detailed here: #138502
    We tried to do the same. It was in part successful: we got rid of the sidebar and the page is now full-width.
    However, we now see this code at the top of the page, just below the header:

    
    av-blog-meta-author-disabled av-blog-meta-comments-disabled av-blog-meta-category-disabled av-blog-meta-date-disabled av-blog-meta-html-info-disabled av-blog-meta-tag-disabled’ role=”main” itemprop=”mainContentOfPage” >
    

    We noticed that in fact the php in the current, unedited single.php file is slightly different from the one in Yigit’s post. So perhaps we need some small modification?

    • This topic was modified 6 years, 11 months ago by Victoria.
    #885247

    Hey rpl_admin,

    It seems that you are missing something – at start that is why there is the code empty.
    What I can imagine something like
    <div class="

    If you added it, it would save the issue

    Best regards,
    Basilis

    • This reply was modified 6 years, 11 months ago by Victoria.
    #885326

    Hi there,
    Thanks for the reply but there seems to be some bug in your message. Could you please resend?

    Many thanks
    Robert

    #885534

    Hi!

    I edited the message above, you can see the code now.

    If you need further assistance please let us know.
    Regards,
    Victoria

    #885871

    Hi Basillis, Victoria,

    Many thanks but still can’t see where the problem is. This is the code that we now have, also we are seeing the date and the author of the post below the title even though we have both of those disabled.

    <div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘main’ ); ?>’>

    <div class=’container template-blog template-single-blog ‘>

    <main class=’content units twelve’> <?php echo avia_blog_class_string(); ?>’ <?php avia_markup_helper(array(‘context’ => ‘content’,’post_type’=>’post’));?>>

    <?php
    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    *
    */

    get_template_part( ‘includes/loop’, ‘index’ );

    //show related posts based on tags if there are any
    get_template_part( ‘includes/related-posts’);

    //wordpress function that loads the comments template “comments.php”
    comments_template();

    ?>

    <!–end content–>
    </main>

    </div><!–end container–>

    </div><!– close default .container_wrap element –>

    #886123

    Hi,

    Could you please post a link to the thread where you found my solution?
    Also, please post FTP and WP admin logins here privately so we can look into it.

    Best regards,
    Yigit

    #886325

    Hi Yigit,
    Many thanks for your reply and offering to take a look.

    Here’s the thread:
    https://kriesi.at/support/topic/in-single-php-how-to-remove-the-sidebar-and-changing-it-to-fullwidth/?login_error

    Other requested details below.

    Best regards,

    Robert

    #886419

    Hi Robert,

    I am not even sure you need to edit templates now. There is a tab for sidebar settings in theme options, you can hide the sidebar there.
    Image 2017-12-08 at 11.17.36.png

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #886483

    Hi Victoria,

    Well, that was easy!!

    Please let Yigit know.

    Many, many thanks!

    Robert

    #886839

    Hi Robert,

    Glad we got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

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