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 mastermind

    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 check the available documentation and search the forums before starting a topic.
    #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 4 years ago by eymlee.
    • This reply was modified 4 years ago by eymlee.
    #97831
    Zed
    Cryout Creations mastermind

    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 check the available documentation and search the forums before starting a topic.
    #97875
    This reply is private.
    #99262
    This reply is private.
    #99390
    Zed
    Cryout Creations mastermind

    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 check the available documentation and search the forums before starting a topic.
Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Landing Page – Text Area – edit or delete the text content’ is closed to new replies.