• Resolved strophy

    (@strophy)


    Hi,

    in order to remove the sidebar from the front page of my site, I created a child theme and added a front-page.php to it without the sidebar code. This worked fine, but now the front page displays an excerpt with a “Continue reading” button rather than the full page. How can I fix this? Or would it be better to remove the sidebar in some other way instead?

    Thanks for the fantastic theme!
    Leon

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Richie KS

    (@rkcorp)

    replace this similiart code in frontpage.php
    <?php echo dez_get_custom_the_excerpt($archive_excerpt); ?>
    to
    <?php echo the_content('...more'); ?>

    Thread Starter strophy

    (@strophy)

    Thanks Richie! Actually the whole design of the front page changed, now there is a big image to the left in a class="post-thumb in-archive" div tag and the continue reading button is still at the bottom. I think the template hierarchy has changed and the front page thinks it is an archive page now, should I name the front page template differently?

    Site is http://www.penghaotheatre.com

    Thanks so much for your help, I’ll talk with the others about getting a beer donation together for you! 🙂

    Theme Author Richie KS

    (@rkcorp)

    seem ok to me, the home with ‘french china 50 anniversary’ or the ‘shakespear’ in english lang one post only. did you fix it?

    Thread Starter strophy

    (@strophy)

    Sorry, our editor reverted to the normal theme without the child modifications. That’s why the sidebar was back. Have another look now and you should see the problem.

    Thanks 🙂
    Leon

    Theme Author Richie KS

    (@rkcorp)

    try rename your front-page.php to front-pagex.php and copy paste the page-templates/template-full-width.php into theme root /mesocolumn/ and rename it to front-page.php

    see if this solved the issue.

    Thread Starter strophy

    (@strophy)

    Thanks so much Richie! That totally solved the problem, and I even understand why 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Prevent excerpt on custom front page’ is closed to new replies.