WordPress.org

Forums

Customizr
Featured Pages Display Full Page Content (9 posts)

  1. Ashawee
    Member
    Posted 1 year ago #

    Hello, I am hoping there is a simple answer to this. Is there a way to display the full post content (not the excerpt or the text box) of the featured pages on the front page? I need to show the full content of three separate pages. Thank you for any insight!

  2. kaniamea
    Member
    Posted 1 year ago #

    Create a child theme of Customizr - http://codex.wordpress.org/Child_Themes and put this page there parts/class-content-post_list.php
    Then find the line where it says: <?php the_excerpt(); ?> and replace it with <?php the_content(); ?> .

  3. Ashawee
    Member
    Posted 1 year ago #

    Hi, thank you for your answer! Unfortunately, that doesn't change the front page featured content to show the full post.

  4. kaniamea
    Member
    Posted 1 year ago #

    I think the features pages on the front page can be only up to 200 car. max.

    See in Customize => Front Page and scroll down to "Featured pages options", where it says "Featured text one (200 car. max)"

  5. rdellconsulting
    Member
    Posted 1 year ago #

    I'm not an expert php coder, but try adding this to a child theme functions.php:

    add_filter('tc_fp_single_display', 'rdc_fp_single_display');
    function rdc_fp_single_display($output) {
        return preg_replace('|, 200|', ', 500', $output);
    }

    which should(!) override the 200 character limit - change 500 to what you need.

  6. Ashawee
    Member
    Posted 1 year ago #

    kaniamea, Yes, I see that, but I was hoping to be able to change it to display all of the content. rdellconsulting, thank you for that answer. However, I need more than just more characters, I need the full page content, html characters and all. I suppose I'm out of luck.

    Maybe it would be easier to use posts?

  7. rdellconsulting
    Member
    Posted 1 year ago #

    Lateral thinking ;)

  8. Sky . Design
    Member
    Posted 1 year ago #

    @rdellconsulting - However what you tried to make happen there is exactly what I'm looking for. Posted the php but unfortunately it didn't work. Would be very interested in a solution, the 200 char max does not make sense to me at all.

  9. d4z_c0nf
    Member
    Posted 1 year ago #

    Use this, instead, in your child-theme functions.php:

    add_filter('tc_fp_text_length', 'my_fp_text_length');
    function my_fp_text_length($original) {
        return 1000;/* change this value the way you want */
    }

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic