Help with layout justification

  • dbphoto1981

    #9130

    Hi all, my site was working fine then for some reason I have gone back to it today and noticed the formatting on some of the pages is not correct: http://www.algarvebikeholidays.com/touring-bike/ these are in tables but have lost this on these pages, any ideas why? looks very messy as is?

    Any help would be great

    Thanks

    Admin

    Syahir Hakim

    #42550

    WordPress strips any HTML element in creating those short descriptions (otherwise known as “excerpt”). It’s probably better to create your own custom excerpt for each of those locations in the form of a proper summary of the location instead.

    dbphoto1981

    #42551

    Thanks Syahir, how do I go about creating a summary for that location for each page?

    Thanks

    dbphoto1981

    #42552

    Hi, does anyone know how to create a summary as Syahir has suggested? Thanks.

    Admin

    Syahir Hakim

    #42553

    In the Edit Page screen, click on the Screen Options on the top right, then tick the checkbox for Excerpt. There’ll be a new option on the page where you can insert your own custom excerpt.

    dbphoto1981

    #42554

    Thanks, just had a look and I dont have the ‘Excerpt’ option showing to check?

    Mod

    Kenneth John Odle

    #42555

    Excerpts for pages are not enabled by default in WordPress.

    Try adding this to your child theme’s functions file:

    <?php
    add_action('init', 'my_custom_init');
    function my_custom_init() {
    add_post_type_support( 'page', 'excerpt' );
    }
    ?>

    Change “my_custom_init” to something unique that won’t interfere with anything else in your functions file.

    dbphoto1981

    #42556

    Thanks Kenneth, what should I change “my_custom_init” to? sorry dont understand?

    Thanks.

Viewing 8 posts - 1 through 8 (of 8 total)

  • You must be logged in to reply to this topic.