Replacing company_twitter function in own template
-
Hi there!
First off, I absolutely love the WP Job Manager plugin, it’s made my life so much easier! Thank you so much!
Now to the question.
In addition to the Twitter and Website fields on the job posts, I’ve added a Facebook field which so far is working well.
The thing is, after creating my own Facebook field, it occurred to me that I want the link tag for the Twitter and Website URL to have a target=”_blank”, so that it opens in a new tab, thus keeping visitors on the website in a separate tab.
Adding it to the Facebook field in my own functions.php file was simple enough, but the Twitter and Website functions are in the plugin’s own functions file.Is there a way for me to override the function in the plugin with one in my theme’s functions.php file? If I add the target=”_blank” to the link tags created in the Twitter and Website the plugin functions, they’ll just get overwritten when the plugin is updated.
Does the functions file follow the same system as the template files? (Wherein anything in a folder called ‘job_manager’ in my own theme folder will over-ride the templates in the plugin folder).
Thanks!
- The topic ‘Replacing company_twitter function in own template’ is closed to new replies.