A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
1answer
13 views

javascript not loading

Here is what I've done so far in functions.php function imk_scripts() { wp_enqueue_script( 'bootstrap_js', get_template_directory_uri() . '/js/bootstrap.min.js', ...
0
votes
0answers
15 views

how to display term name angularjs

I've recently learned about angularjs and I am trying to display a term associated with a specific custom taxonomy. So far this is what I've tried in my partials file - <div ng-repeat="post in ...
0
votes
0answers
6 views

How to use wordpress (php) functions in angularjs partials files?

I am using angularjs to load a list of my wordpress posts, however I can not get any of my php functions to work with my partials file. I've tried using something such as search.php instead of ...
0
votes
0answers
27 views

How to get javascript slider to work!

I've only just started to develop my own themes and i'm stuck adding javascript to my slider. I've added the slider into my index.php file as below: <div class="carousel"> <div ...
0
votes
1answer
33 views

Javascript code for Category

can I check if scripting can be encrypted for specific categories? For example, I would like to encrypt only for http://www.example.com/category/news/education, for ...
0
votes
0answers
10 views

Having trouble going from Jfiddle to implementing in Wordpress :(

If someone could point me in the right direction on how exactly to do this without yelling about follow codex site lol. I wouldnt be here if I wasnt able to get it working haha. I created a neat ...
0
votes
1answer
454 views

Accessing an API with jQuery and AJAX

As a proof of concept I'm trying to access an API using jQuery and AJAX and posting the results to a page. After following some online tutorials and doing my best to put it all together, I have the ...
0
votes
1answer
569 views

Make tinymce button have a checkbox that returns a value, instead of true/false

from my understanding the checkbox of the tinymce buttons only return true or false? Is there a way to get a checkbox list? And all the item's values inside the checkbox list that are checked will ...
2
votes
2answers
888 views

WordPress Ajax Login without page reload

I'm currently developing a WordPress theme where I want the user to be able to upload images before he register or log in to the site. The initial problem was, you can't upload images to WordPress ...
0
votes
1answer
29 views

Issues trying to get an element by id

I'm trying to incorporate javascripts in my wordpress posts. I've previously done it by just adding it to the post in the wordpress editor, but I've heard the better way is to add it to a js directory ...
-1
votes
0answers
25 views

wordpress malware help? [on hold]

i keep getting this malware code in my wordpress , even if i do a clean install of my wordpress a few hours later its back again on wordpress js files and plugins :/ i cant remove it... i keep ...
0
votes
0answers
15 views

Dynamic Custom Fields

I am working on a custom invoicing system for a client. I am looking for the best way to implement adding products dynamically to the invoice in the wordpress admin. There are hundreds of products ...
-1
votes
0answers
9 views

Add custom icon by category on google map

I know how to add custom icon instead of marker But only if there is only one marker map. In case of multiple marker by category is much tricky for me. I also don't have enough knowledge of js. ...
0
votes
1answer
26 views

Run JS Code on userlog out

I'm trying to delete a variable stored in local storage when user logs out of WordPress, none of the two code blocks below work for me, both have been tested in my functions.php file one at a time. ...
1
vote
1answer
721 views

Is there a way to enable Cross-Origin Resource Sharing for WordPress' ajaxurl?

WordPress already has a default URL for jQuery-WordPress application calls and it's well known as the ajaxurl. However, there are cases wherein one would need to enable Cross-Origin Resource Sharing ...
0
votes
0answers
18 views

Javascript attr href not appending parameters on WordPress site

I have this exact code set up and running on a regular HTML/PHP site but when I tried setting it up in WordPress, it doesn't work. The code itself works, the Javascript is present when I view the ...
0
votes
0answers
20 views

angularjs not displaying all posts

I learned about angularjs today and I am trying to create a page for my search results so that I can be able to create facet filters. Currently I have a page template with the following code -- ...
0
votes
1answer
939 views

Dropdown parent link not working in mobile

I'm working on WordPress with Bootstrap. The WP Menu dropdown parent link is not working on a mobile device. Here is the JavaSript: <script> jQuery(function ($) { $('.navbar ...
0
votes
1answer
654 views

Dropdown menu on click change

Im working on a website where I need to create a submenu that shows only the parent pages. When I click on one of the parents it has to show the children from that parent. Here is the menu hierarchy ...
1
vote
1answer
18 views

Add colorpicker to featured image

I'm trying to add a colorpicker to the featured image meta-box. Here is some background: I use the featured image meta-box to place parallax background images. Because a user is allowed to place text ...
0
votes
0answers
20 views

Enable/disable code in functions.php with options

Is there a way to enable or disable lines of code in a themes functions.php file? Basically I would like to have a page in the admin panel that lists "modules" or separate php files and has the ...
-1
votes
1answer
25 views

How to have Facet Search like Zillow, Trulia, Hotpads, Hotels, etc [on hold]

I am working on a real estate site and I am trying to implement a refine search form that allows users to filter/sort the search results after an initial search. I dont want to use a paid plugin ...
-2
votes
1answer
29 views

Javascript code not working - $ is not a function error

On redesign out web site we wanted to add the slick js carousel function on the homepage. Followed the instructions to the slick javasriprt website http://kenwheeler.github.io/slick/ but it does not ...
2
votes
2answers
2k views

Can I include Javascript/jQuery in a page?

I'm extremely new to Wordpress, and I've offered to help out with a project that uses it. In a new page I'm creating, I need to use javascript/jQuery to write out the html dynamically - it doesn't ...
0
votes
2answers
459 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
0
votes
3answers
2k views

How do I add some javascript validation to the admin interface form's onsubmit?

I have a plugin that adds meta boxes to the admin interface and I need to do some validation when the user presses the "update" button before the form is submitted. Is there a WordPress action or ...
1
vote
1answer
29 views

How do I remove the date and category form my portfolio pages

This is one of my portfolio page Whenever I wanted to remove dates and category from blog posts I always used this code function jl_remove_post_dates() { add_filter('the_date', ...
0
votes
0answers
12 views

WP Disclaimer Popup Plugin Tweak

I am using WP Disclaimer PopUp by Art Armstrong and it is really perfect for what I'm doing. However I need one small simple tweak. I tried to hire him to do it but didn't get an answer. Whoever ...
4
votes
3answers
2k views

What does wp-embed.min.js do in WordPress 4.4?

Question What does the wp-embed.min.js file do? I noticed it is added to the end of my blog page footer. How can I get rid of it? Effort After some googling and I found Embeds on the Codex. Why ...
0
votes
0answers
13 views

Javascript in WordPress Navigation - mobile menu

I added a Live Chat link to my WordPress navigation menu. I followed the Ideal solution #2 below which works great on the desktop, but not on the mobile menu. It doesn't do anything on mobile. Any ...
0
votes
1answer
831 views

Force Download a file (Save As) instead of opening in browser [closed]

I have developed a WordPress plugin MDC YouTube Downloader. It takes an ID or a URL of a YouTube video and generates download links. When you click on a generated link, it opens the video in browser ...
8
votes
3answers
151 views

Any advantage of using wp_scripts and is_IE when enqueuing scripts

I read on the WP docs, which pointed to this gist that the correct way to enqueue styles for IE is by using the $wp_styles. I'm guessing that this would be true then for scripts as well. Take these ...
5
votes
3answers
4k views

Infinite scroll / lazy loading with NextGen Gallery

I'm working on a project for a friend that involves a massive page with 3,000+ photos. See: http://www.thepurplepixie.com/projects/purple-pixies-people-project/ Currently, I have pagination set to 50 ...
0
votes
1answer
1k views

How to make Isotope and Wordpress work together?

I am trying to make my Wordpress theme using Isotope plugin. http://isotope.metafizzy.co/ So far, I have such a result after doing that was suggested: I believe that Isotope Masonry should not ...
0
votes
0answers
11 views

Customize the map from Geodirectory plugin [on hold]

I'm trying to add a color to a particular state for Geodirectory's map since all of the locations are in one state WV. I found this site that generates the JS code for this for JS maps. but don't ...
3
votes
1answer
448 views

WP3.5 Media Uploader - how to make it accept multiple images?

I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code: $('.button').on('click', function(){ var ...
0
votes
3answers
1k views

Load plugin JS in footer

I am trying to load JS files in my theme's to footer.All my custom JS files are being added to WordPress using wp_enqueue_script, but i am unable to find any way which will help me to load them in ...
-1
votes
1answer
12 views

Gravity Forms closes my popup on Validation Error [on hold]

I am having an issue with Gravity Forms. A user on my site can open a contact form in a popup menu by clicking a 'contact' button. The form is just in an absolute div that I show/hide on the contact ...
0
votes
1answer
35 views

Combining results from WP-API using AngularJS

I currently have this site - http://dev.5874.co.uk/scd-data/ where I have a dropdown which displays results from WP-API which I am pulling in through AngularJS. It currently combines the two sets of ...
0
votes
1answer
116 views

Custom Plugin - CSS works, JS doesn't

In the plugin I'm making, I use separate js and css files (____.js, ____.css). This is the first time that I've included an external .js file in anything. I'm registering and enqueueing both in the ...
0
votes
2answers
32 views

Inserting ads within content

I want to show adsense ads below the 4th and 20th paragraph of every blog post, ONLY if there is a 20th paragraph. I managed to insert an ad below the 4th ad by placing the following code in my ...
1
vote
0answers
22 views

PhantomJS with wordpress

I know it sounds basic but I'd really appreciate some help/guidence on how to use phantomjs on my wordpress project. I'm using Windows 8.1 and local host with xampp for now. I've downloaded phantomjs ...
0
votes
2answers
810 views

Unable to load “wpColorPicker” on theme customize page

Whether I'm using a Wordpress default theme or a custom one, I see the JS error: Uncaught TypeError: Object [object Object] has no method 'wpColorPicker' when I click "Customize" on the theme. I've ...
0
votes
2answers
970 views

How to add JavaScript file using wp_enqueue_scripts?

I have made a very simple JavaScript script. There is 1 .js file with a lot of code, and in the HTML file there is only 2 lines. The script works fine when I test it on a plain HTML page, but when I ...
0
votes
1answer
612 views

Load php function with AJAX on modal window

On a movie information wordpress theme i am developing, i have an href with text "watch trailer" on each cover of all movies. This brings a modal window, and that is working already, but i want to ...
4
votes
1answer
6k views

AJAX filter posts on click based on category

This is my first foray into AJAX, I've been splicing bits of code from various tutorials which probably hasn't helped. I have a list of categories on my homepage (index.php) and a list of the most ...
1
vote
0answers
11 views

Weird issue with slider on javascript

I have a page that i am using revolution slider on the page and everything works fine. I have a global javascript that runs on each page that looks at the url variables on the page, city and tel and ...
0
votes
2answers
566 views

Disable / Deregister all JS from all plugins

How can i disable all js files from plugins and load one single js file which i have combined and compressed ? Is there any way ?
0
votes
0answers
7 views

How do I resolve this issue with conflicting script tags? [migrated]

I've been researching this all week and am unable to resolve it myself, so I would really appreciate any help you can offer. I used HTML, JS, and CSS to cause a modal box to appear on the webpage ...
0
votes
1answer
31 views

how to do open a link in a open window from menu bar? [closed]

I am working on a word press site. When I click on a entry in menu bar, it should open that link in a new window. I know how to do this for a button but not sure for a list item. This is the code ...