Markup and attributes


Hi Dee,

You could add a is_page conditional check in your functions file, then use the Markup API to wrap the page title with a span.

Here is an example:

beans_wrap_inner_markup( 'beans_post_title', 'page_title_inner', 'span' );

or

beans_wrap_inner_markup( 'beans_post_title', 'page_title_inner', 'span', array( 'class' => 'your-custom-class' )  );

Hope that helps 🙂

Cheers, Chris


Thanks Chris.

beans_wrap_inner_markup

I think I understand this can be used now.

Write a reply

Login or register to write a reply, it's free!