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
- Order posts (across the whole site) by metadata date
- Disable visual editor on one specific page
- How to display random users with avatars
- Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php?
- In a WordPress plugin, how do you output HTML code inside the DOM header? [closed]
- Different ‘WP_CONTENT_URL’ for different subsites in Multisite setup?
- Display WordPress Search
- Preferred Use of home_url()?
- Functions.php reverted to new one
- Where does function_exists() look to decide whether a function exists? [closed]
- Get page slug and assign a variable within functions.php
- Make “sidebar template” the default template for new pages
- Refactor create_function
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- Attach parent category template to all subcategories
- How to insert a text in all pages and posts before or after specific places?
- Add class or ID to any WordPress function
- Remove Font-Awesome MaxCDN Link & Load Locally
- How to remove howdy dropdown menu content
- Change Admin Bar “Visit Site” URL
- exclude a category from a search on a specific page
- Stop turning small dashes into longer ones
- How to get specified parent page title in my function
- Execute function after a post has been published
- Last updated date function
- Possible to display shortcode based on the category?
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- How to set default archive image without overriding first attached image? [closed]
- Passing a variable via wp_head and then calling it on the page
- Load Woocommerce and WordPress Functions Outside
- How to make custom column Admin>Users sortable?
- How to know which ajax file or function is called for action
- How to filter $content in shortcode function
- Difficulty with PHP function that displays a post’s format in WordPress
- WordPress Shortcode function display outside of widget
- Get rid of the widget Item Class=”widget-item”
- How to dynamically insert in the image caption?
- Change menu based on page template via functions.php
- wp_enqueue_script | Help me figure out what is causing jQuery is not defined
- Why is it so hard to add a class to the tag in the sidebar widget?
- Parent theme styles overriding child theme CSS [closed]
- Adding theme option values as custom body class
- How to add a new image size and apply it to posts only?
- What is the correct way to include my new functions and scripts in WordPress?
- add_menu_page() with variable function
- include w_thumbnail_src in function?
- Multiple, Dynamic, Sidebars Problem – First Sidebar not working properly
- Custom blog post summary on blog index page
- Ajax Form Issues using Lightsail (AWS)
- Remove the ‘category’ url for one category type
- CSS style and app.js not loading
- Parent category as WOOCommerce Categories widget title
- Problem with my footer after changing WooCommerce Products Sorting [closed]
- Limiting WordPress Search function : Custom build
- Change user role based on total number of items ordered
- Function stops working
- Rewrite rules and the permalink
- Custom taxonomy check box now showing up
- Set display name from nickname with register process
- How to prevent multiple custom terms from being created
- revision id is one number behind – publish_post
- How to create a function to redirect a specified page to another page
- Multisite Admin Roles
- Database SQL Error, Should Work
- How To Get WordPress Categories Last Update Date?
- How to use WP_rewrite?
- Wp get archive only text not link
- can not call functions in function.php
- Custom shortcode not being included in content paragraph [duplicate]
- Display post_meta-by_key on product catalogue
- What are the parameters are used in add_action and filters?
- Which template file to edit to edit homepage in Mystile [closed]
- Does functions.php apply to every page?
- How do i set global variable in a function in wordpress functions.php