A client side scripting language useful for making interactive web sites
0
votes
0answers
10 views
Plugin javascript (floating elements) not working on custom post type single page template [closed]
Strange problem, not sure how to figure it out.
I had someone create me a cool little plugin that allows me to input a CSS element ID and that element will float to the top of the page and stick ...
0
votes
0answers
33 views
featured post show in category base
i have 2 featured post in 1 div id, 1 big class and 1 small class . i want big featured div are post in category base.. big featured post code show in below.
<div class="main_feat">
...
-2
votes
0answers
20 views
wp_enqueue_script doesn't work!
Hello there! I am building a wordpress theme and whenever I apply the wp_enqueue_script function into my functions.php file, everything seems to go smoothly, except when I load the page. Here is the ...
-1
votes
0answers
19 views
Javascript Smooth Scroll [closed]
I am new to jQuery and Javascript. How do I make a smooth scroll to anchor links on my wordpress site. I tried different plugins, but they don't work on Safari. Thanks for all help.
Shaan
0
votes
1answer
22 views
Newest version of javascript
Doing updates to my site and all the files seem to update ok, except the javascript files.
I think this is to do with the version, but try as I might I can't get version numbering to work.
...
0
votes
2answers
24 views
random reason on refresh
I am editing the sidebar widgets and have added one for users who are not logged in or registered. the widget requests that users register or login and I am wanting to add a random reason (quote) as ...
0
votes
0answers
76 views
Save Changes function after table is sorted using jquery
I have a simple table, and the jquery works great for sorting. The fields drags an drops perfectly, and updates then and their. Also of course the data in the fields are saved in a array. The data in ...
-1
votes
1answer
45 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 ...
-1
votes
0answers
21 views
How do use arbitrary HTML, Javascript, and CSS?
I'm new to Wordpress.
What is the most reliable way for me to have a Page or Template that Wordpress manages use entirely arbritrary HTML, CSS, and Javascript. For example, what if I wanted to make ...
0
votes
2answers
20 views
How/Where is editor.min.js Added to the wp-admin Post Page?
How/Where is the wp-admin/js/editor.min.js file added to the backend WordPress post editing page (wp-admin/post.php)? How could I change this to use the non-minified file?
I'm working on a browser ...
1
vote
1answer
26 views
update_option in javascript
So there's function in wordpress to update a named option/value pair to the options database table: <?php update_option( $option, $new_value ); ?>. And what I'm trying to do implement this ...
-2
votes
0answers
18 views
My Javascript is all screwed up! [closed]
I'm having an issue with the Embedder plugin breaking other ads and JS.
The other day I was tinkering around with some code and must have broken something and can't figure out what. When I first saw ...
3
votes
1answer
98 views
Ajax Load More Posts in Category Page
I am developing a theme where I need to load more posts with ajax. Currently, when I click load more on the category pages, all the posts are loading. The category.php looks like this : `
...
-1
votes
0answers
20 views
Arbor.js to show custom terms [closed]
I'm trying to use the arbor.js (http://arborjs.org/) to display custom term taxonomies in wordpress but it's a complicated plugin to setup (at least in my jquery level). Has anyone did something like ...
0
votes
0answers
15 views
embedding php in javascript to switch out image in child theme [duplicate]
I am trying to embed a some php in my javascript to switch out images...
$(document).ready(function() {
$('.small-port-images a:nth-child(3)').click(function() {
$('.large-port-image ...
0
votes
1answer
29 views
How to turn off automatic operation for Nivo Slider?
I am using Nivo Slider plugin to run a slideshow on my site.
It automatically runs a slideshow on top of my screen. However I want the user to do this manually (clicking to advance to the next ...
1
vote
1answer
44 views
JavaScript && operator in visual editor
I am used to of adding javascript/jquery code in posts via visual editor but it seems I never used && operator cause wordpress is altering && operator in &. Here is a link where I ...
0
votes
0answers
17 views
One page site (returning from google) + history manipulation
I am making a one page site using wordpress.
The one page has all the menu pages linked into one, but there will be arbitary pages (landing pages) for subcategories and stuff at the moment.
I have ...
0
votes
1answer
47 views
Replacing WordPress Icons (menu,icons32, etc)?
I want to replace wordpress admin sprites. I recreated the images and looked answrs for icon replacement using jquery and simply with CSS BUT what about ones link icons32-2x.png where I can't find the ...
0
votes
1answer
21 views
Covert Wordpress Blogname into JQuery
Here is the blogname in php <?php $blog_title = get_bloginfo('name'); ?>
I want to convert it to javascript. The file I want the blog name is in a .js file so I cant create the variable with ...
1
vote
1answer
33 views
Display the number of unseen comments on a page since the user last visit
The community is private and it has several pages /wordpress /design /etc . When users go to those pages the only thing they can do is to comment.
Now, what I am trying to do, Idk if possible, but if ...
-1
votes
0answers
32 views
thickbox.js Endless loading gif. Why is thickboxL10n not defined?
Below is the line that throws the error. I am using thickbox.js
jQuery("#TB_window").append("" + ""+caption+"" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "");
0
votes
0answers
16 views
Lightbox Post Pop-up on homepage [duplicate]
I've been working on sampression lite theme and what I want to achieve is when a post' thumbnail/read more link on homepage is clicked, a modal will pop-up ( similar to pinterest and this wp theme ...
0
votes
0answers
12 views
How to utilize theme customizer live preview in this situation?
Short version: I am using the theme customizer in my theme and javascript for the live preview. I am not sure how to implement the javascript for php(as seen in code excerpt).
I am creating a theme ...
0
votes
1answer
21 views
Loaded JavaScript file not showing [duplicate]
I'm working a custom WordPress site, and I've loaded all the required JavaScript file:
wp_enqueue_script('easing', get_stylesheet_directory_uri() .'/js/diapo/jquery.easing.1.3.js');
...
0
votes
0answers
49 views
how to retrieve subcategory related to category in edit page from view page by using javascript
I am doing a basic product page by using JavaScript,php and html. I retrieve the category related subcategory drop down list from view page .but my subcategory is not change according my category .I ...
0
votes
0answers
17 views
PressThis works inconsistently in Safari
... and this has been true for several years and several OS X versions, just haven't found any answer.
On the other hand, my Tumblr bookmarklet has worked 100%, through all this. Or maybe they're ...
0
votes
0answers
24 views
videopress videos are not displayed when loading the content with ajax in a lightbox
I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
1
vote
2answers
132 views
Load multiple Javascript scripts
I have three Javascript script that I need to load -
imagesLoaded.js
lazyload-1.8.4.js
and cd.js
cd.js contains my functions that use imagesLoaded.js and lazyload-1.8.4.js.
Do load them ...
1
vote
1answer
47 views
How to deal with the confliction between PHP-Markdown and MathJax?
I use PHP-Markdown plugin in WordPress. In order to show the formula beautifully, I add some code to use MathJax.
Like this:
<script type="text/javascript" ...
0
votes
1answer
31 views
website script stopped working
i have 2 copies of my wordpress website one online and the other offline the code now is working on offline but on the online some scripts stopped appeared when i used contact 7 plugin but i fixed it ...
1
vote
0answers
80 views
Single page site with history.js
I'm developing a single page site that shows each page on the front page, like so:
*-----------------*
| Home |
...
0
votes
0answers
28 views
get_option include <br /> in my adsense
As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some
"<script type=\"text/javascript\"><!--<br ...
0
votes
1answer
298 views
Ajax Validation for reCaptcha
Background
I have a registration form that validates with AJAX using jQuery Validation Engine. The form was created using Theme My Login and contains reCaptcha which I implemented using WP-reCAPTCHA.
...
0
votes
1answer
42 views
How to enqueue some javascript source once per page
I need my plugin to generate the following - once per page:
<script type="text/javascript" src="https://<ritc url for js file>"></script>
<script type="text/javascript">
...
0
votes
1answer
34 views
Screen Options JavaScript Code
I want to know, what script drives the "screen options" animation toggle in WordPress.
I'm referring to the options menu that slides out when the admin clicks the "Screen Options" link near the ...
1
vote
2answers
72 views
How do I only load js on the post-new.php and post.php pages in admin?
I have some script that is loading in the admin. I only need it to load on the new post and edit posts screens.
What is the best way to do this?
0
votes
4answers
48 views
contact 7 plugin stops some pages from working properly
I started to use contact 7 plugin and I'm having a slider and some effects on other images when i activate the plugin they stop working this is the web page
http://www.digitalways.com.sa/
I ...
0
votes
1answer
32 views
Plugins not showing up for custom template
I'm customizing the index.php page. I've customized my header.php and footer.php and created the styles for both things.
My main index.php page has:
<?php
/*
Template Name: Main
*/
?>
...
0
votes
1answer
60 views
Linking wp_enqueue can't find the javascript file (adds “?ver=x.x.x” to the src)
So I'm trying to link in a javascript file the right way, by using this:
--functions.php--
function custom_scripts() {
wp_register_script('myscript','/backdrop.js',array('jquery'));
...
0
votes
0answers
39 views
Created custom control from theme customizer, where should I add code it will control?
I have created a custom control for the theme customizer which is a simple button and label. I am going to be using it as a theme reset button that will clear the theme mod settings to their original ...
0
votes
0answers
227 views
Creating a custom Jquery modal form to upload data in wordpress 3.5.1 [closed]
i am new to jquery.I looked to various demos but can't find what i am looking for.
I want to add a upload item feature in my wordpress website.This feature is available to the end user after he/she ...
0
votes
1answer
83 views
Replacing & in JS code on pages
I am needing to remove the & that seems to be replacing my & on my page code.
My original code looked like this:
...
0
votes
0answers
30 views
List.js inside WordPress widget
I am trying to implement list.js (http://listjs.com/) inside my WordPress widget, so far with no success.
At first I have tried it in a simple index.html file outside the WordPress environment just ...
9
votes
2answers
307 views
Does the functions.php file ever get called during an AJAX call? Debug AJAX
Trying to figure out an issue a fellow programmer is having. I was wondering if the functions.php file get called at all when you do admin side AJAX? I know that when you do an AJAX call a part of ...
1
vote
0answers
46 views
Using window.onload with Ubermenu
I am using a plugin to place this code on specific pages. But it is not firing correctly.
Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
0
votes
0answers
36 views
Show the image specified in src
I'm trying to find a way to state "if" there is an image in the description of a Wordpress post show the image specified in src instead of from the data-img attribute. Right now I'm using a JS plugin ...
0
votes
2answers
93 views
Theme Customizer not loading JS for live preview
I am currently working on adding options to the theme customizer. For the last two hours I have been trying to get the live preview working and I am trying figure out why my theme isn't loading the ...
0
votes
0answers
36 views
Dont remove comment box when replying to existing comment
When using the WordPress comment system the top Comment Reply box dissapears when I click to reply to any of the existing comments. If I then click cancel it reappears.
Is there a way to keep this ...
6
votes
1answer
72 views
API to trigger prompt on leaving page
I have a proprietary plugin that creates a metabox on the edit-post page. When the data managed by the plugin is edited and the user navigates away then we would like the user to be prompted as ...