iffikhan30
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] how do i make theme options page with this pluginOhh all are conversation but not a proper solution can you guide me how to access theme option on admin panel provide me proper guide line i am stuck on that part thank you.
here is code of example-fucntions.php
Just example me how to access admin panel that code Or page Or section
`add_action( ‘cmb2_admin_init’, ‘yourprefix_register_theme_options_metabox’ );
/**
* Hook in and register a metabox to handle a theme options page
*/
function yourprefix_register_theme_options_metabox() {// Start with an underscore to hide fields from custom fields list
$option_key = ‘_yourprefix_theme_options’;/**
* Metabox for an options page. Will not be added automatically, but needs to be called with
* thecmb2_metabox_form
helper function. See wiki for more info.
*/
$cmb_options = new_cmb2_box( array(
‘id’ => $option_key . ‘page’,
‘title’ => __( ‘Theme Options Metabox’, ‘cmb2’ ),
‘hookup’ => false, // Do not need the normal user/post hookup
‘show_on’ => array(
// These are important, don’t remove
‘key’ => ‘options-page’,
‘value’ => array( $option_key )
),
) );/**
* Options fields ids only need
* to be unique within this option group.
* Prefix is not needed.
*/
$cmb_options->add_field( array(
‘name’ => __( ‘Site Background Color’, ‘cmb2’ ),
‘desc’ => __( ‘field description (optional)’, ‘cmb2’ ),
‘id’ => ‘bg_color’,
‘type’ => ‘colorpicker’,
‘default’ => ‘#ffffff’,
) );}
Forum: Fixing WordPress
In reply to: How to i export my websiteto WordPressHey Hi Sunny,
Is too much simple thing go to tools option select export the data.
OR
Simple you zip on wordpress folder extract where you want to run it.
Also export Database and import new hosting here is database update query
https://www.billerickson.net/code/update-urls-in-database/
OR
You have only upload theme on your new hosting
Go to Folter wp-content -> Theme -> (YOUR theme name) Zip it. and upload new wordpress theme and import the export data you have to do it before.
OR
SEO purpose if you change the domain obesslly its effected on google.
Your new wordpress have same link on new wordpress.Regards,
Irfan