prate012
Forum Replies Created
-
Forum: Plugins
In reply to: Beginner Plugin Issues – Hello World PluginDuh!, I got it figured out.
The example does not remind you to put in the beginning and ending php tags. Did this and no problems…
Thx considerder this one closed or just delete it altogether.Forum: Plugins
In reply to: Beginner Plugin Issues – Hello World PluginAlso I should note that I am developing the plugin with sublime text3 and have the FTP setup so that whenever I save a file it automatically uploads to the directory – not sure if this is what is causing the error or not.
I also tried this in the jQuery file to no effect:
if ( jQuery(location).attr(‘href’) == ‘https://www.alabamaguntrader.net’) {
//click the hamburger menu
jQuery(‘.secondary-toggle’).trigger(‘click’);
}Here is the reference page I’m using for this code:
https://stackoverflow.com/questions/406192/get-current-url-in-javascriptI have made some progress on this issue, but I still need a little assistance in expanding the hamburger menu on mobile HOMEPAGE only. The site is now live and I’m tweaking as I go – alabamaguntrader.net
First off, I asked a friend of mine how he would do automatically expand the mobile menu and he said to just add some javascript or jQuery to do that. So I did that with jQuery (which was a learning experince) and it worked.
But now I have found that the auto-expanded menu gets in the way when you are not on the hompage and trying to do other stuff on the site. So I tried
1)Adding an if condition in the functions file around the “add_action” that runs the jQuery. Menu is no longer auto expanding on any mobile page:
if ( is_front_page() ) {
add_action( ‘wp_enqueue_scripts’,’expand_mobile_menu_by_default_on_homepage’ );
}2)Tried adding the if condition in the jQuery like this. Menu no longer expands on any mobile page…
if (jQuery(location).attr(‘alabamaguntrader.net’); ) {
jQuery(‘.secondary-toggle’).trigger(‘click’);
}Forum: Plugins
In reply to: [Woocommerce osCommerce Import] Some images are missingDo you mind If I ask how much this service was and sharing the contact info for the developer who did this? We have a site that is finished except for the product images.
Feel free to email me directly at [email protected]
Thanks!
BrandonForum: Plugins
In reply to: [Woocommerce osCommerce Import] Some images are missing