hello, I use ultimate membership pro for my magazine?.
I would like add an icon lock before the title of my article with limited content.
Before going forward,
I would like to know if a hook could work with the title in blocks on homepage and categories.
thank you for your help.
Calin,
Thank you for your answer but last question :
if I work in the loop-archive.php is there a way ?
<h3 class=”entry-title td-module-title”>
” rel=”bookmark” title=”<?php the_title_attribute() ?>”>
<?php the_title() ?>
Thank you for your help.
Olivia
Ok Calin, I understand, but…
I need your help a little bit to achieve this !
Ok, I can’t for the moment add an icon only when user is logout…
As I cannot climb the mountain I go around it :
I create some shortcodes in functions.php for my post title ( limited content)
For my test I made a blue button with a link.
It works perfect on the post as you told me.
It “nearly” works in the category and on the homepage with the blocks.
It displays the word “button” but not the button itself.
This means that it can work … I’m close, but I need a lead to be perfect!
Here is two screen shots.
Thank you
Olivia


Sorry Calin,
this is my code :
add_filter(‘the_title’, ‘do_shortcode’);
function diwp_button_shortcode($attr){
$args = shortcode_atts(
array(
‘link’ => ‘#’,
‘bgcolor’ => ‘#1a73e8’,
‘textcolor’ => ‘#FFF’,
‘text’ => ‘Button’,
), $attr);
$button = ‘‘.$args[‘text’].’‘;
return $button;
}
add_shortcode(‘diwp-button’, ‘diwp_button_shortcode’);
————-
I try with :
add_filter(‘archive_title’, ‘do_shortcode’);
add_filter(‘post_title’, ‘do_shortcode’);
but, it doesn’t have effect… only the ‘text’ => ‘Button’,
Thank you
Olivia
Yes, is displaying only the text because all the extra css is striped out by the theme, I made some tests some time ago to set an icon or button for posts titles and I didn’t find a solution, sorry! I do not say that it can not be done but I do not know a way how to achieve this. Back then I suggested to use an extra category and to use a custom css that will set an image on all posts titles that has that category, but for this the category must be set as primary in posts to be display on homepage.
Thank you for your understanding!
Doesn’t work for me…
So this theme is a NEWSPAPER theme and you can’t create a FREEMIUM because of a simple issue of css in block for a small picto before the post title on home page and categories. Mean… after two weeks of work, spending 80 euros, I have now to change my theme or spend more euros with an IT Developer for a so obvious function for a magazine. It’s a little bit hard to swallow.
Thank you for your understanding
Olivia
Hi oliviaparis, I’m sorry for this, I know that there are other more simple themes that maybe has this option an ours not, indeed our theme has a lot of options and you can achieve with it many things, but if is not what you need or does not have the options for what you want, we can provide a refund – https://themeforest.net/refund_requests/new and we will approve it as soon as possible.
Let us know.
Thanks
IT developper is working on… I will tell you more once done.
He already succeed on categories and homepage, he is still working to integrate the “icon”(an image) on the mega menu.
And yes your theme has a lot of options and I was too much involved with it, so refund can’t be an option for me.
Olivia
Calin, it works now on homepage blocks and categories with a shortcode image. On the menu not totally. I get a result with the shortcode brackets and a word in it: [abonnes]. See in Screenshots.


Hi,
I’m glad for you!
If you are using a cloud header, then you can edit this file for mega menu -> wp-content/plugins/td-cloud-library/modules/tdb_module_mm.php -> https://i.imgur.com/TkVeN6S.png -> https://i.imgur.com/4V6M6Fq.jpg
Hope this will help you!
Hi Calin
I give up … this time it’s final!
I made my decision on Saturday night after a last fight!
Finally I did not succeed completely in solving my shortcode problem in the titles of the articles: homepage + categories + Menus. Cannot activate them in the menu and cannot use a next / preview. The tagdiv-composer is impossible to completely circumvent.
And then I also have a conflict with a plugin that is too important for me, the restrict content pro. I had also tried with ultimate member pro before and it’s the same, conflict!
And to finish a list of duplicate queries despite the optimizations made according to the indications of the documentation.
It’s too many fights for a theme, plus the money spent to develop shortcodes in article titles and it prevents me at every step of moving forward in my project. I give up !
I made a refund request with the link you provided me … Thanks for your help, thanks for trying for the shortcodes!
I hope you understand.
Looks.
Olivia
Hi Calin,
Yes, I’m sorry too !
The theme is full of goods options and the support (you ! ) is perfect, but… not on this project.
Kind regards.
Olivia