How to: Update live sites theme from version control repo via plugin or library? [closed]
I use a script called git-ftp, which simply uses FTP to push changes from a git repo onto a server.
I use a script called git-ftp, which simply uses FTP to push changes from a git repo onto a server.
It means that the declaration of the start_lvl method in wp_bootstrap_navwalker should match the declaration of the method in Walker_Nav_Menu. It doesn’t. function start_lvl( &$output, $depth ) { VS. function start_lvl( &$output, $depth = 0, $args = array() ) { Make the arguments match exactly and you should be fine. And you should probably not … Read more
Guess from the URL structure, your %postname% permalink structure is active. So, a bit of internal CSS can help alternatively, and the syntax is in_page(‘page_slug’): <?php // Do action only on specific page in WP ?> <?php if( in_page(‘resourses’) ) { ?> <style> #static-footer-image{ display: none; } </style> <?php } ?>
Try the suggestion below: This assumes the <figure> element holding an image has a data-display-alignment attribute to match the alignment class applied attached that is somehow surfaced as a parameter in the wp_calculate_image_sizes hook: /** * Add custom image sizes attribute to enhance responsive image functionality * for content images. * * @param string $sizes … Read more
From http://headjs.com/ : There is a common misbelief that a single combined script performs best. Wrong: latest browsers and Head JS can load scripts in parallel. loading 3 parts in parallel instead of as a single chunk is usually faster. iPhone 3.x cannot cache files larger than 15kb and in iPhone 4 the limit is … Read more
I’m not sure if this question is still relevant or not (so I’m posting for future reference for people), but there is a way to define a css file for the TinyMCE editor in your plugin by using the mce_css filter. For a quick example, I’ll take an excerpt from the WordPress documentation: function plugin_mce_css( … Read more
To answer the first part of your question: your settings form already has the checkbox case covered; so if you add a new checkbox input, you don’t need to add anything to the switch. This code will apply to all checkbox inputs you add: case ‘checkbox’: ?> <input type=”checkbox” name=”vertigo_theme_options[<?php echo esc_attr( $option[‘id’] ); ?>]” … Read more
Pages are generally speaking rather inflexible, you would be better off using a custom post type. Also hooking into the actual page template dropdown would very likely be problematic (I doubt it would work without some serious hacking around). You’re better off just writing your own meta box dropdown. I think your on the the … Read more
WordPress will only search one level deep (*See below for details) from the root directory of the theme for page (and post) templates. However, the array of templates can be filtered using the theme_{$post_type}_templates filter, so you can add deeply nested templates on your own: // See WP_Theme::get_page_templates /** * Filters list of page templates … Read more
I have gone through the implementation of all Gutenberg core blocks in start, so now if I have to know how to use something then I first find the closest core component which is implementing that and then looks at the documentation of that particular block via https://github.com/WordPress/gutenberg/tree/master/packages/block-library/src This process is solving problems for me … Read more