Shape 5

Wordpress Free Themes => Vertex - Free => : mct2002 March 14, 2018, 09:09:48 AM



: Plugin/Theme Conflict
: mct2002 March 14, 2018, 09:09:48 AM
I am experiencing a conflict between the theme and the plugin, "Contact Form Builder" by Web Dorado.  Here is what they told me was the problem:

It is not written wp_head() function in your Theme, because of this the javascript files are not working.

They have put in a temporary fix, but as soon as the plugin is updated then it will go back to not working.  Is this a change that can be made to the theme?


: Re: Plugin/Theme Conflict
: Tristan Rineer March 14, 2018, 09:51:29 AM
You were given incorrect information.  The wp_head() function has been included in the framework for a very long time.  It is not located in the index.php file, but the framework definitely uses it; it is just located in core framework files, due to the way the framework functions.

Did they give you any information about how the "temporary fix" was done?  Any changes made to the main theme files should stay even after an update, as the Vertex Upgrade Patch (http://www.shape5.com/component/option,com_docman/Itemid,96/task,cat_view/gid,308/) only changes core framework files.



: Re: Plugin/Theme Conflict
: mct2002 March 14, 2018, 09:54:16 AM
I've asked about the change they made, but I haven't received a response.  The change they made was to the plugin, not to the theme.


: Re: Plugin/Theme Conflict
: Tristan Rineer March 14, 2018, 09:57:56 AM
Without knowing what they did, I won't be able to suggest another solution or make any changes to the framework. 


: Re: Plugin/Theme Conflict
: mct2002 March 15, 2018, 08:45:52 AM
This is what I received back from the plugin developer:

Our developer has added the following code into contact-form-builder/frontend/views/CFMViewForm_maker.php file:
?>
<script type="text/javascript" src="http://rothauction.us/wp-content/plugins/contact-form-builder/js/cfm_main_front_end.js"></script>

<?php


: Re: Plugin/Theme Conflict
: Tristan Rineer March 15, 2018, 12:13:59 PM
You can always try just adding that code to immediately before the </head> tag in the index.php file of the theme.



: Re: Plugin/Theme Conflict
: mct2002 March 15, 2018, 12:15:18 PM
I'll give that a try.  Thanks for your help!