-
AuthorPosts
-
December 28th, 2019 at 22:46 #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
December 29th, 2019 at 13:22 #97046ZedCryout Creations mastermindThe 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.January 7th, 2020 at 11:22 #97305January 19th, 2020 at 18:33 #97831ZedCryout Creations mastermindThe _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.January 20th, 2020 at 08:33 #97875This reply is private.February 24th, 2020 at 20:58 #99262This reply is private.February 28th, 2020 at 13:18 #99390ZedCryout Creations mastermindThe 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. -
AuthorPosts
The topic ‘Landing Page – Text Area – edit or delete the text content’ is closed to new replies.