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


Creating Custom Options Pages in WordPress

To create a menu for theme setting in the WordPress admin, you should use the Settings API provided by WordPress. Using this API, you can register a new options page, with fields for settings. Additionally, you can add settings to an existing options page. That being said, let’s add the following code to the main […]

Enable SVG Support in WordPress

For Enable svg support you’ll need to add the following code to your current themes functions.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 […]

Adding Custom Meta Fields to Taxonomies in WordPress

For add Custom Meta Field in taxonomy use following code in your current themes functions.php file.

Create Custom Template for Child Categories in WordPress

Create different template only for child category put following code in your current themes functions.php file

How to Create Custom Elements Using Visual Composer API

When we are making site with visual composer some time not possible to built some designs using visual composer elements. So at that time we need to use HTML element for built designs. But visual composer API provide facility to built own custom element for some special requirements and its very easy. We can built […]


Leave a Reply

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