Serialization problem after auto-update
Serialization problem after auto-update
Serialization problem after auto-update
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.
It looks like you are using the Settings API to add images to a gallery or slideshow. As @kuchenundkakao suggested, a post type would be a good choice especially if you will have multiple slides, or if you will use different slides inside different galleries. If you don’t need a custom post type (it is … Read more
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
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
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
I think you would need to edit the appropriate stylesheet so that the divs using the class “wrap” float to the left of each other. If “wrap” is being used elsewhere by WordPress I would give this a new name such as “mywrap.” You might also want to give that a width of 20% with … Read more
So you have created a custom option using the Settings API. Lets say you have created an option called footer-text you can display it in your theme using <?php echo get_option( ‘footer-text’ ); ?>. Essentially you are echoing the result that is stored in the wp_options table for the option called footer-text. It is advised … Read more
Dropdown pages in Settings API
You need to be able to edit the theme itself (or as a child theme) to make that change – obviously the theme options aren’t giving you that option. Chances are that in your header.php or similar you are going to find code that pulls those values from the Theme Options page. That’s what you … Read more