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

learn more… | top users | synonyms

0
votes
2answers
39 views

Remove H1 / title / Underscore - without CSS

I have tried searching, and tried a few options, but I'm not able to remove the H1 / title / Underscore for specific pages. I don't want use CSS. I would like to remove it via functions.php or in ...
3
votes
1answer
27 views

Can I add custom attributes while adding inline scripts?

I need to inject some underscore templates into admin screen without modifying the core. The templates look like this: <script type="text/template" id="template-123"> <div class="section ...
-1
votes
0answers
5 views

Target child of alternate <article> [migrated]

This is more of a CSS question, but I will add it here since any underscores developer might have encountered it. I have a index page layout as: <article> <div class="xyz">...</div> ...
0
votes
0answers
43 views

comment visible only for author post and admin and user comment

i have a custom post called "service" in this custom post i want a possibility to send proposal-comment by user. but i want this comment are visible only for admin + author of post + user that send ...
0
votes
1answer
73 views

WooCommerce: Adding Order Item Meta Data That's Hidden

I was under the impression that if you add an underscore to your meta_key, it would be hidden from the Admin and subsequently the Order Receipts, etc. But, mine are showing? I don't understand what's ...
0
votes
0answers
64 views

Customizer Api: Load settings and controls from dynamically generated array

I have a front_page setting like so: $wp_customize->add_section( 'front_page', array( 'title' => __( 'Front Page' ), 'priority' => 120, ) ); I am trying to allow the user to do ...
0
votes
0answers
81 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
89 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
88 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', function(...
0
votes
2answers
239 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
468 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 ...