Posted: August 3, 2023 at 6:01 am
|
Hi,
Did something change in the meantime? |
Hi there, I’ve just tested that code and it removed the links around the Widget title for me. Try placing your code within a custom functions plugin rather than your theme’s functions.php file, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
|
Hi Tony, |
Change this line: To be: Any different? |
|
|
Hi Tony, |
Then something isn’t right, EE uses that filter to add the title at priority 15 so that filter is running otherwise it wouldn’t have the links and the above is hooking in at priority 999 (originally 16 in that snippet) to remove the link. You have your custom functions plugin activated, correct? |
|
Try just:
Note that’s going to remove the links of EVERY widget title, your doing the above to test rather than as a ‘proper’ solution. |
|
|
Hi Tony, |
You could, but you’ll need to compare the value to make sure your adding a link to the correct widget title, right now that’s filtering ALL widget titles. Is the link a custom link specifically for the Widget? It currently uses the default events archive and there’s a filter that can be used to change ALL instances of that link, meaning you would need the above at all. But that obviously only works if all instances of that link need to be changed? |
|
|
Hi Tony, |
The support post ‘Remove Upcoming Events widget title link – bis’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.