-2
votes
0answers
19 views

Add Scripts to Wordpress

I would like to add the script given below (which I found somewhere on a forum) to my Wordpress theme. Can someone please provide the correct code which I can simply copy to the appropriate files in ...
0
votes
0answers
48 views

FitVid not working for iframes on particular theme install

I am using FitVid in my theme and all is well except for a specific site that was migrated from Drupal. FitVid works fine with objects and embeds but not iframes, and only on this particular site. The ...
0
votes
1answer
25 views

WP Plugin Running before jQuery

Can somebody please take a look at this, I'm really getting frustrated with it. I'm having problems with jquery and a plugin. I've setup a WP theme here if you would like to preview. I've also got ...
0
votes
0answers
13 views

Using jQuery safe mode in WP? [duplicate]

I am pretty new in WordPress and I know just a litle about jQuery and Javascript and I have the following problem: Into my functions.php file I load jQuery, the jQuery FlexSlider pluging (that create ...
0
votes
1answer
414 views

Why a SlideShow (made using JQuery FlexSlider) can't work if I load it form functions.php but work if I load it from my footer.php file? [closed]

I have the following situation: I am carrying this pure HTML theme (that use BootStrap CSS framework) into a WordPress theme. This is the original pure HTML demo theme (I have the entire source code ...
0
votes
1answer
47 views

How to correctly add JQuery in a WP theme?

I am pretty new in WordPress and I have the following doubt: I have to include JQuery into a theme and I am doing in this way: I create the following function into functions.php theme file and I add ...
-1
votes
1answer
54 views

Javascript as Jquery Function Call?

Refer to Nice scroll to wordpress wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call var seq = 0; ...
0
votes
2answers
57 views

Check javascript file Proper way in functions.php

I am trying to convert html to wordpress. The code in the html was: <script src="js/jquery.nicescroll.min.js"></script> <script src="js/jquery.js"></script> ( jQuery v1.7.2 ) ...
0
votes
1answer
67 views

Is it possible to get a theme customizer setting from wp.customize using jquery?

I am wondering if it is possible to directly interop with the wp.customize api to get a value of a theme customizer setting. The way I am doing it now is using ajax to get a response from a php ...
0
votes
0answers
61 views

Masonry and infinite scroll child theme

I have a question about masonry and infinite scroll plugin by Jetpack. I've added in my function.php file this code: function mason_script() { wp_enqueue_script( 'jquery-masonry' );} add_action( ...
0
votes
0answers
64 views

Infinite scroll not working with Masonry

I've got masonry working, like so: $('.content').imagesLoaded( function() { $('.wrapper, .content').fadeIn(600); $('.index-page .content').masonry({ itemSelector: '.post', ...
0
votes
0answers
19 views

Customizer - Update colour picker value based on currently selected radio

been scratching my head over this one and think I need a little help basically im trying to change the current value for a colour picker (in this case the body bg) based on the currently selected ...
0
votes
3answers
232 views

How can I loop into two different DIVS without repeating the DIVs

I am having a little trouble trying to figure out how I can accomplish this: I have a container with two colums in it, a right and a left column. Each column will have 3 posts with a short excerpt ...
0
votes
2answers
150 views

How to Add a .js file Only in one specific Page Dynamically to Head

I need to add some scrips for Google Maps only in my contact page and I do not want to populate it on all pages. I am not willing to create a custom header as well so I was thinking is there any way ...
0
votes
0answers
29 views

Enable WP to accept standard jQuery code embeding between the <body> tags [duplicate]

I don't know what is the reason that WP is not accepting the standard embedding technique from jquery website ( http://learn.jquery.com/about-jquery/how-jquery-works/ ): <!doctype html> ...
0
votes
1answer
42 views

Wordpress custom jquery not found

I have a custom jquery file, here is code: /* Custom JS */ jQuery(document).ready(function(){ jQuery("#top-menu li:first-child a").addClass('selected'); }); And here my code to load js file in ...
1
vote
0answers
194 views

Adding wp_enqueue_media(); causes problem

I want to add the media uploader in the theme options page. If I add following code in the options page, the media uploader works fine there, but it creates problem in the standard posts featured ...
1
vote
1answer
92 views

How to show a dynamic_sidebar if main content content's height is > a set amount?

I'm looking to add a second dynamic_sidebar to a theme's sidebar.php that will only be displayed if the height of my main content area is greater than a certain amount. If I had some magic hybrid of ...
1
vote
1answer
70 views

Why is this Ajax not working?

I'm not sure if I am abusing WordPress and Ajax by doing it this way but WP and Ajax Codex a well as Plugin Development with Ajax do not seem to be very helpful. I have created the following Ajax ...
0
votes
0answers
111 views

Passing a location-dependent array via wp_localize_script within a shortcode

I have created a shortcode that is intended to be inserted into custom field of a music custom post type. The shortcode is coverted into an audio playlist using the jplayer jquery plugin (and it's ...
0
votes
1answer
847 views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
0
votes
0answers
23 views

Problem with upload boxes not functioning as expected

In my theme option page, I have 5 image upload boxes. The jQuery code for loading the wordpress image upload window on button click is: jQuery(document).ready(function($){ var custom_uploader; ...
0
votes
1answer
129 views

enqueue script if page is not equal to

I'm registering some js scripts in my function.php, I have 2 versions of one js file, one FOR the homepage, and one for every other page. I've managed to get this to work to register the homepage ...
0
votes
2answers
173 views

WP e-Commerce plugin is breaking drop down menus functionality

After installing WP e-Commerce plugin primary theme menu functionality got broken. Here is theme with installed WP e-Commerce plugin: http://www.interactstaging.net/clients/tozzi/ and here clean theme ...
0
votes
3answers
521 views

JQuery undefined and Stylesheet loads in bottom along with js files

I'm developing a theme for wordpress and I'm using this function to enqueue scripts and styles function Joy_scripts() { wp_enqueue_style( 'Joy-style'); wp_enqueue_script( 'Joy-scripts', ...
1
vote
0answers
112 views

Getting jquery to work with custom theme

I am trying to get some jquery plugins to work with my custom theme. Up until now I was doing this: function my_scripts_method() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ...
0
votes
1answer
100 views

Set start page depending on screen width [closed]

I'm building a responsive theme and would like to have different start pages depending on screen width. In this case, the start page is set in WP admin and contains an image map built on a cunstom ...
0
votes
0answers
80 views

How to disable controls in theme customizer?

Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer. I am trying to figure out how to disable setting controls in the Wordpress theme ...
0
votes
0answers
69 views

Problem with function not executing

I am sorry for the long post but I wanted to be thourough in hopes someone could help me figure out this issue. I have been trying to get it working for 2 days with no such luck. I would appreciate ...
0
votes
1answer
60 views

Using page-id-{ID} from body_class() in local dev, versus live staging

Not sure this is a question suitable for this forum, but I'll try: I think it is pretty convenient targeting elements in css/jQuery for a specific page by using the page-id-{ID} generated by ...
0
votes
2answers
253 views

Theme not calling Jquery properly

I am developing a theme and I have called jquery along with other JS files from a theme-enqueue.php file. For some reason only the Jquery file that is hosted on googles servers is adding the theme URL ...
0
votes
0answers
259 views

Post thumbnail to append post content via ajax click event

I've searched hi and dry, tried various tutorials but I just cant get anything to work and its been a good 3 weeks now :( I have a loop that displays custom post thumbnails in a grid using this ...
0
votes
2answers
43 views

Including Javascript options

For a Wordpress Theme I know javascript files (ending in .js) must be included using wp_enqueue_script in functions.php but how do I include additional javascript code, for example say I need to add ...
0
votes
1answer
175 views

Weirdness in jQuery supplied with WordPress

I've got a problem with the jQuery supplied with WordPress. The following HTML exhibits this problem: <!DOCTYPE html> <html> <head> <script ...
0
votes
2answers
209 views

My jQuery is enqueued properly. So why isn't it working?

I'm just trying to add a simple bit of Show/Hide jQuery to a child theme. $(document).ready(function(){ $("#openbtn").click(function(){ $("#openingtimes").toggle(300); }); }); I've saved the ...
0
votes
1answer
139 views

Royalty-Free Sliders used in theme development

I am wanting to develop a premium Wordpress theme, and would like to know what is the best way to go on choosing a slider. I'm not skilled enough yet to write one from scratch. The ideal situation ...
3
votes
1answer
89 views

What is the best practice for customizing a plugin's JavaScript/jQuery?

Most well written plugins support a safe means for a developer to customize/theme the plugin by copying PHP files to the theme directory and modifying the copies rather than the original plugin file. ...
0
votes
1answer
268 views

Custom theme, contact form 7 & fast secure form doesn't work

I have problems with the plugins CF 7 & FSF. When I paste the code [si-contact-form form='1'] for FSF I get the result of the code "[si-c..." itself when I load the page instead of a form. I ...
0
votes
2answers
135 views

Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?

I have a slider in my theme. I have a setting in the options which controls whether that slider is set to "slide" or "fade". This slide/fade setting is in the jquery and of course the options setting ...
2
votes
1answer
75 views

What is the difference between these two methods of writing $ instead of jQuery in WordPress [closed]

What is the difference between these two methods of writing $ instead of jQuery in WordPress (function($) { // $ Works! You can test it with next line if you like // console.log($); })( jQuery ); ...
8
votes
5answers
5k views

Including jQuery and JavaScript files the correct way

I'm having some trouble with this. I'm not sure how to do it the correct way, and I read so many different techniques and ways to do it that I don't know what to make of it. Some questions and ...
0
votes
3answers
3k views

Unhook jQuery from WooCommerce via `functions.php`?

So I am using the http://woothemes.com/woocommerce/ plugin for eCommerce and it's registering jQuery local and conflicting with my default jQuery call from Google CDN. It took a long time but I ...
-1
votes
2answers
775 views

Integrating WordPress Content into a jQuery Slider

I have a pretty basic 'featured-list - image slider' implemented above my content in my custom WordPress theme. How do I integrate WordPress content into the slider so that the slide content is pulled ...
2
votes
2answers
903 views

Wordpress Enqueue Script Chaos (jQuery & Foundation.js)

I've been working on building a theme for the past couple days now, and I've run into a wall. While I originally included foundation.js as an enqueued script, I couldn't remember why I had added it. ...
2
votes
2answers
2k views

How do I “unhook” / de-register jQuery so that it's not called as part of wp_footer();?

I need to "unhook" jQuery from my wp_footer() ... it's being called automatically and I'm looking for something I can add to functions.php which prevents it from being called a second time in the ...
0
votes
1answer
154 views

loading javascript after jquery is loaded

I want to load some javascript for the front page of my theme after jquery and jquery ui is loaded. what would be the hook to use? I am aware of the functions.php and I have used is_front_page(). ...
1
vote
2answers
1k views

Implementing FancyBox

I am trying to implement fancybox into WP without using a plugin. I did some research and went over few examples but there is still an issue. Any help would be greatly appreciated. Here's the code: ...
0
votes
1answer
72 views

WordPress Subpages Fancybox Trouble

I have a website that I'm converting over from a static html site to WordPress. I got almost everthing done, but I'm having trouble with there "about us" page. When you click on their profile it ...
1
vote
0answers
221 views

Suggestions for Developing a Flipbook Style Theme? [closed]

I'm currently working on a custom WordPress theme that will be a showcase of several different stories, "books" if you will, that contain individual chapters. I'd like to present each of the stories ...
3
votes
2answers
567 views

jQuery in header or footer

From my reading it seems there is a good case for loading scripts like jquery and dependencies into the footer as a preference if possible; however 2 things confuse me which. Firstly the default for ...