How to update option field in database on clicking the publish button in customizer

When ‘publish’ is clicked in customizer, the option ‘theme_mods_THEMENAMED’ is updated. An function/action could be added See https://developer.wordpress.org/reference/functions/add_action/ on the wordpress actions add_option_(option_name) and update_option_(option_name) See https://codex.wordpress.org/Plugin_API/Action_Reference#Administrative_Actions. The new function could then save what ever option you want to update.

how to add navigation icons in specific template?

First add this in function.php file. This is font-awesome cdn function wp_enqueue_icon_stylesheet() { wp_register_style( ‘fontawesome’, ‘http:////maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css’ ); wp_enqueue_style( ‘fontawesome’); } add_action( ‘wp_enqueue_scripts’, ‘wp_enqueue_icon_stylesheet’ ); Then add this class ‘fa fa-lg fa-home’ in specific menu from backend menu Appreance->menus Then select the screen-option from top left and select/check the ‘CSS Classes’ After that put the ‘fa … Read more

Dynamic image for Jumbotron on WordPress Custom Theme

You can add support for the built-in Custom Header feature: https://developer.wordpress.org/themes/functionality/custom-headers/ Or use the Customize API to add your own control to the Customizer for selecting the image: https://developer.wordpress.org/themes/customize-api/ The Custom Header feature is basically just a shortcut for using the Customize API to add a control, but you have less control over what the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)