if you can do it easy way ,so why not?
you can use jquery to do it like:
( function( $ ) {
function function_name() {
$( '.gallery-caption').css({display:'none'});
}
function_name();
} )( jQuery );
Related Posts:
- How to add ‘data-caption’ inside an anchor tag
- Move captions under gallery images in twenty fourteen theme
- Customize WordPress Media Manager – Media Window
- Gallery images titles – get from post
- How to use thumbnails in gallery?
- Display gallery on top before content
- Converting html to wordpress images not showing
- Getting Featured Image Caption to Only Show if Populated
- Default Gallery Edit/Template Editable?
- Shortcode pagination not advancing
- Add caption functionality to custom WordPress theme
- Help with WP gallery function, wrap gallery in div
- how can I edit flexslider in woocommerce. [Urgent]
- Custom Attachment Caption Fields
- Display gallery on bottom after content
- Way to add captions to gallery images by code
- watermarking gallery items
- Functions Error: Impacting Galleries
- Native gallery custom html output
- Check if a different page has any attached images
- Render metabox gallery in frontend
- a SET of wordpress native galleries with title and text?
- Customise the WordPress gallery html layout
- Add gallery id to rel attribe of wp_get_attachment_link
- Dynamically adding Captions to images
- Gallery Shortcode Function Help
- How Do I Prevent Featured Image Caption Displaying Above And Below Image
- Uploading images via ACF update_field function
- Add custom text before all image captions in WordPress posts
- Javascript and Stylesheet in child page
- What to do to have access to WordPress functions
- how to create php file and load it in wordpress post?
- How to prevent multiple custom terms from being created
- Post date on Custom field
- Fatal error: Call to undefined function add_action() – an untouched problem
- revision id is one number behind – publish_post
- How to add number to wordpress count function?
- How do I integrate my Child Theme into a Custom Template?
- Using wp_localize_script in template file – is it secure?
- Limit Number of Posts on Blog Category Page Throwing 404 Error on Paginated Pages
- Sending Messages Back to the Template After Processing?
- How can I return the result of my custom function?
- Shortcode to eliminate and replace with
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Automatic add space if user enters number(any digit)
- Changing the register url is not working
- WordPress Jquery+scripts enqueue issue
- Newest comments first not working
- Pass arguments to function class with do_action()
- Trying to Add a LEFT Sidebar?
- How to a override parent theme page that has been included with require_once?
- previous_post_link inside of a function?
- Display most popular posts
- Remove Featured Images from Posts Older Than a Certain Date
- To make some div display for a longer time
- Search and Replace Script Loader in Head Only Works in Footer
- How to display content If function exist/condition true?
- Regex works in regexr, but not if I filter content [closed]
- Getting back a blank WordPress site following functions code edit
- Different body image backgrounds on different pages, posts and categories
- Insert menu into theme location depending on user logged in/out status
- How to list out all values from the get_body_class array
- How do I change the woocommerce product gallery to show all thumbnails instead of three at a time in a carousel?
- Moving CDN jQuery to footer does not work?
- How to run a function when publish posts? [duplicate]
- get_comments not working properly after WordPress v4.4 update
- custom COOKIE on custom page
- Retrieve a custom form field modified by a filter
- Call custom field using php
- Custom taxonomy not refreshing page on add
- is_page_template wont allow me to enqueue scripts
- Using catch_that_image() for galleries?
- Change category checkbox into radio button [duplicate]
- Need some Tweak my nextpage Function
- Author info does not show up when author has no posts
- How to create a function to redirect a specified page to another page
- how to display featured image for single post for a specific category
- us states dropdown function and echo in theme template files
- Adding a meta box fields to child theme options page
- Nothing happends on post_update
- Multisite Admin Roles
- WordPress not showing pagination links
- How to wp_enqueue_script with html?
- Automatically add tag if a checkbox is checked
- Database SQL Error, Should Work
- Database Query not working
- Adding a jQuery rotator function
- Can I use a function to return HTML and the result of another function?
- How to pass a variable from a template page to the child theme functions.php
- Instead of using $post, how do i get the thumbnail image of the $post
- Login functions
- Home/Static Page View for Visitors pages after that should be restricted
- functions.php filters not applied in AJAX call
- wordpress not calling peliegro functions.php?
- Dynamically generated Navigation Diagram using Custom Fields
- Child Theme functions.php has no effect
- Setting a cookie in functions.php and it gets deleted when working on an other function
- Hide certain post types from editors
- Problem with add_rewrite_tag
- Add functionality to post editor