Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to support@pickplugins.com
0
Heading in Title with Link 1
eldescansodegaia
Aug 26, 2019 10:04 PM 1 Answers
Member Since Aug 2019
Subscribed Subscribe Not subscribe
Flag(0)

Hello,

I have created a ''Post Grid'', which shows the posts of a category, and I have a serious problem: there is no way to modify the titles of the posts shown in the grid between heading tags html? (Now, for each post, <a href="url post"> Post title </a> is displayed, I need it to be <a href="url post"> <h3> Post title </h3> </a>) .

How can I do it? (I have the pro version of the plugin)

Thank you

2 Subscribers
Heading in Title with Link 1
Heading in Title with Link 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Heading in Title with Link 4
PickPlugins
Aug 26, 2019
Flag(0)

Welcome to our forum.

you probably haven’t checked out the layout editor. you can remove the existing element and add new, please watch this video.

https://www.youtube.com/watch?v=9bQc7q40jMc&list=PL2GPPfgLrfWxAZBQc10XCh5wzDSOfPrKB&index=22

For your case, you can’t edit element HTML via layout editor, this case you will need to add via filter hook, you will need to add following code to your theme functions.php file

function post_grid_filter_grid_item_title_extra($title){

    $post_id = get_the_id();

    return ' <h3> '.$title.' </h3>';

}

add_filter('post_grid_filter_grid_item_title','post_grid_filter_grid_item_title_extra');

Let me know for more help.

Regards

Heading in Title with Link 5
eldescansodegaia
- Aug 27, 2019 10:43 PM
Flag (0)
0

It worked, thanks.

A greeting

Sign in to Reply
Replying as Submit