JavaScript library for functional programming that doesn’t extend built-in JavaScript objects.

learn more… | top users | synonyms

0
votes
0answers
9 views

How can I create scrollable columns? [migrated]

I created a new template file template-home2.php in there I have a row with 3 columns, I would like to make each of these columns scrollable instead of the entire page. How can I achieve that? I have ...
0
votes
0answers
32 views

Responsive menu not displaying in underscores theme

I am building a site using underscores theme. When the site is opened on a mobile phone, the toggle menu displays but nothing happens when one clicks on it. Also the full width menu does not hide. ...
2
votes
1answer
44 views

What type of template are WP media-modal's templates?

I was looking at the Wordpress templates (html that's written to the page instead of awkwardly adding strings in JS). There are a lot of templates like this in a post editor for example: <script ...
1
vote
1answer
68 views

Customizer Ajax

This is the JavaScript code used in the underscores theme to preview any change of the setting value without reloading the previewer: // Site title and description. wp.customize( 'blogname', ...
0
votes
2answers
117 views

Hook into backbone to add js to wp-admin -> media library?

I've enqueued a .js file on the "Media Library" page (upload.php). I need to hide and manipulate a few of the thumbnails on the page using JS only ( I'm not looking for workarounds ). The elements ...
0
votes
1answer
383 views

Getting custom post type author and date published

In underscores I can get my custom post type just fine with pre get posts along regular blog posts. However the date published and author does not display. How can I modify my template tag ...
3
votes
1answer
1k views

Using Underscore Templates in WordPress

I've noticed that since WP 3.5 that we now have the Backbone.js and Underscore.js libraries included. The new Media Modal uses Underscore templates and I was wondering how would I be able to insert ...