Adding a paragraph description for the Portfolio page

Hi- Is there a way to add a short description to the Portfolio page within Theme X? If you see this page https://localaccidentreports.com/attorneys/ I have a few portfolio items and want to add a paragraph description right above the “New Mexico Attorney”. Is this possible?

Also, how do I change the title tag for this page?

Thanks!

Hi Greg,

Thank you for reaching out to us. This can be done with custom development, because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

After setting up the child then add the following code in your child theme’s functions.php file:

add_action( 'x_before_view_global__index', 'portfolio_short_desc' );
function portfolio_short_desc() {
	if(is_post_type_archive( 'x-portfolio' )){
		echo "<p>Short Description</p>";
	}
}

Change the text as you need. Hope this helps!

Awesome! Thanks you!

Glad we could help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.