• 0

DMS 2 PageHeader Dynamic Text Manipulation


Question

Posted · Report post

I've been hunting around for documentation for PageHeader, but it seems that I just can't find it.

 

All I want to show is the relevant category selected by the user, such as 'Showcase', with no additional garbage provided with the default configuration as shown in the attached image.

 

How can this be achieved?

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

Hi,

 

Unfortunately, it is currently not possible to have different templates for different categories so you can not achieve this by using a section such as Page Header. However, what you can do is use the PL NextBox if you're a club member and add the following code to the NextBox section and check the PHP execution option.

 

single_cat_title('<h1>','</h1>');

 

This will display the display the category title wrapped in <h1> tags. You can replace the <h1> tags in the code above with anything such as <h2>, <h3>, <h4> or even <p> tags.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now