Landing Page – Text Area – edit or delete the text content

  • Author
    Posts
  • #96999

    Hi

    Currently, the default of the text content on the text area of the landing page is the page content.

    I am wondering if I can have unique content for the text content (example summary of the page). If that is not possible, to remove the text content altogether.

    Thank you.

    Website: ahopeafterdivorce.com/wp

    #97046
    Zed
    Cryout Creations Team

    The text areas are designed to display the full page content (and featured image, if set). To change this to the excerpt instead, you’d need to customize some theme code (namely the roseta_lptext() function which retrieves the page attributes that will be used)


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #97305

    Do I have to modify the roseta_lptext_output() as well or just modifying the roseta_lptext() be good enough?

    • This reply was modified 2 months, 3 weeks ago by eymlee.
    • This reply was modified 2 months, 3 weeks ago by eymlee.
    #97831
    Zed
    Cryout Creations Team

    The _lptext() function is responsible for retrieving the source content which will be displayed in the text area, while the _lptext_output() function handles the actual (markup) output (using the previously retrieved content).

    Depending on what part of the workflow you want to alter, you’ll need to customize one, the other, or both.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #97875
    This reply is private.
    #99262
    This reply is private.
    #99390
    Zed
    Cryout Creations Team

    The first identifier in the apply_filters() call tells WordPress which (existing) filters to use for that call. In this case it applies the same filters as applied on excerpts to the data returned by the second argument – the get_the_excerpt( 'excerpt', $pageid ) call.

    This is the code returning the excerpt of the page which you need to change to return full content instead.

    WordPress has a get_the_content() function that can be used instead, but parameters will need adjusting and care should be taken for the details provided in the ‘more information’ section of that page.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
Viewing 7 posts - 1 through 7 (of 7 total)

You need to log in to reply to this topic.