WordPress
October 12, 2021

Add ACF Options Page in WordPress

To create an options page, open up your current themes functions.php file and add the following code:

‘Theme General Settings’,
‘menu_title’ => ‘Theme Settings’,
‘menu_slug’ => ‘theme-general-settings’,
‘capability’ => ‘edit_posts’,
‘redirect’ => false
));
}

?>

Without passing any parameters to this function, the default options page will be added to your wp-admin sidebar.

Related Post


Enable Right Sidebar in WordPress all Post for Astra theme

Easy way to enable right sidebar in all wordpress post for astra theme add following code in your current themes function.php file.

Remove Version From CSS & JS in WordPress

Let’s start with removing versions from style and scripts. To do so, add the code below in your active theme’s functions.php file. After adding script on functions.php file you can view the source of any pages version should be removed from all your styles and scripts. You can also remove version from WordPress Head and […]

How to add /blog/ in front of your single post URLs in WordPress

when we want to add /blog/ only for wordpress default post, add Following code in your current themes functions.php File.

Set time Zone by Country

Include the following code file to your current themes functions.php file. Users can see all time by their country timezone wise.

WordPress htaccess

The .htaccess is a distributed configuration file, and is how Apache handles configuration changes on a per-directory basis. Basic WP Multisite Subfolder Example SubDomain Example

Featured image metabox not appearing on custom post edit page

Sometimes theme not support featured image metabox, when put following code in your current themes functions.php file. function my_custom_theme_setup() { add_theme_support( ‘menus’ ); add_theme_support( ‘post-thumbnails’ ); // other options } add_action( ‘after_setup_theme’, ‘my_custom_theme_setup’ ); Now featured image metabox support in custom post edit page.


Leave a Reply

Your email address will not be published. Required fields are marked *