- This topic has 1 reply, 2 voices, and was last updated 6 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Construction Base Pro › Controlling Excerpts in CB:features and CB:services
Hi,
when customizing my home page as per the demo. I faced a challenge that the mentioned to plugins get the excerpts from the beginning of the page with a fixed length.
I wish to display a number of words from each page that is different than the others, and it would have been better if i can write the except explicitly not to be taken from the beginning of the page.
am i missing something? is there any property in the page that i can use to write the excerpt?
if not, can i expect any update with those features?
Thank You
Hello @tarek-elnazer,
The page edit screen does not have the excerpt field but you can add the excerpt field through the custom code in the page edit screen so that you can control the content that you want to display in your site.
For this you have to create the child theme.
You can even create the child theme using the plugin given below:
https://wordpress.org/plugins/wp-child-theme-generator/
After activating the child theme in your child theme functions.php file add below given code:
add_action( 'init', 'construction_base_pro_excerpts_to_pages' );
function construction_base_pro_excerpts_to_pages() {
add_post_type_support( 'page', 'excerpt' );
}
After adding the code please make sure you have check the the excerpt option by going to Screen Option at top right.
Screenshot:
https://image.prntscr.com/image/uv2odGf5SJCYMTUAvZs7KQ.png
Hope this helps.
Best Regards!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |