wp_customize_image_control default value

I had the same problem a few minutes ago. Here is what I used in the src tag: <?php if (get_theme_mod( ‘custom_logo_image’ )) : echo get_theme_mod( ‘custom_logo_image’); else: echo get_template_directory_uri().’/inc/images/default_logo.png’; endif; ?> It seemed to solve my problem. Let me know if it works for you.

Can you get the themes options page to turn on/off which custom post types are registered?

If you can get a dynamic variable value of the brand, then you can load wanted CPT. Inside function.php Create a link to your new function “remove_cpt_multisite”. Ex: // Remove menu items for users include (TEMPLATEPATH . ‘/assets/functions/remove_cpt_multisite.php’); The template itself (remove_cpt_multisite.php) : <? add_action( ‘admin_init’, ‘my_remove_menu_pages’ ); function my_remove_menu_pages() { $my_brand_variable = “get your … Read more

Make Theme Options Menu item more easily / directly accessible

Theme Options page under Appearance are added by this function. <?php add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function ); ?> To make it appear outside as a top level menu page replace it with following. <?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function,$icon_url, $position ); ?> Where $page_title :The text to be displayed in the title tags … Read more

Calling an custom field from theme option at the frontend

I’m not sure how you’ve decided to save your options but if I were to guess based on the code above, you’re saving your ‘aboutBlurb’ as an index in the website_options array which I also assume you’re saving in the actual WordPress Options – website_options[about]. To get that data maybe try this: $website_options = get_option(‘website_options’); … Read more

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