May 5, 2015 at 3:40 pm #35622
I am working on getting my site into an App using Apppresser and Reactor. Reactor requires not only the shortcode to be called but the JS and CSS if needed in a custom template.
What would I use in the WP template file to call to JS and CSS to make it work? Right now the file looks like this attachmentMay 5, 2015 at 10:43 pm #35649
The best way ( I believe ) to find out which files you need to include is to use the shortcode on your desktop version and use the browser console ( I use the element inspector in Safari ) to look for the files that GEO my WP includes. You can also copy the HTML lines directly from the console ( again, using Safari ) and paste it in your file ( see attached image of my console as an example ).
and the main CSS file should be included like:1<link rel="stylesheet" id="gmw-style-css" href="http://yoursite.com/wp-content/plugins/geo-my-wp/assets/css/style.css?ver=2.6.1" type="text/css" media="all"/>
I hope that helps.May 6, 2015 at 2:09 am #35672
Thank, that’s a start. Still does not work perfectly, so I’ll need to dig into what other java calls need to be in the custom templateMay 6, 2015 at 2:30 pm #35696
Try the files below:
Are you using any of the premium add-ons?May 6, 2015 at 2:34 pm #35697
Awesome. Yes, I’m using the Global Map add onMay 6, 2015 at 5:35 pm #35709
Thanks!! I’m seeing errors in the console logs. Are these useful? They don’t show up on the non-Apppresser/Reactor version of the same page using the shortcode.May 7, 2015 at 7:18 pm #35777
Looks like that jQuery isn’t loading at all.
I am not too sure we are doing right.
Can you point me to the docs where it explains how to do this?May 8, 2015 at 1:50 am #35788
There’s really no true documentation. With Reactor by Apppresser, I was told to make a template with the attached code and page with no content that just points to that template.
Then I was told the following
As for the custom template, we do not have any documentation for it as it would be more WordPress functionality than Reactor, but I have attached a basic template I used to pull in a contact form. You will need to amend this file, include a shortcode for your map if one exists. Remove my contact form shortcode and replace it with yours. If you need to include any styles or paths to JS files, you can do that in the head section.
Once the template is ready, you need to include it in your theme files. Then, create a page on your site and use this template with it. Inside Reactor, use Page From Site and point to this new page. This worked for me but there is obviously no guarantee it will work for you, but it is worth a shot. I also would not be able to give too much support on it either as I am sure you can understand.
Any JS you need to add will need to go in the Head section.
Look at the source of your actual Map page on your site and locate any JS related to the mapping system in either the <head> or <footer>. Try adding that to the head on the custom template.
See the attached screenshot for my code. I can’t upload the PHP hereMay 12, 2015 at 9:34 pm #36170
Sorry about the delay. Have you got it working?
Save it and try again.May 13, 2015 at 2:26 am #36194May 27, 2015 at 1:29 am #37219
Eyal, any update on what you think is happening?May 28, 2015 at 1:28 pm #37327This reply has been marked as private.May 29, 2015 at 1:59 am #37389
Sure. In private is the cred’s.Private Content HiddenMay 30, 2015 at 11:09 am #37439This reply has been marked as private.
You must be logged in to reply to this topic.