wordpress-theme-customize

Wordpress Theme Customizer - Add area for users to move around and organize widgets

泄露秘密 提交于 2019-12-12 08:44:36
问题 I am currently developing a Wordpress Theme, using the Theme Customizer to let users customize it, but I have got stuck. For the footer, I have created various widgets, containing different things like Recent Posts, or a Live Twitter Feed. I want the users to be able to organize them, in the order they want, yet I cannot work out how to do it. I found one other theme (Zerif Lite), that lets you do this (see image below), however I went through all the code and couldn't work out they did it,

Calling paramenter, get UTF8 null return error in formatting.php

我只是一个虾纸丫 提交于 2019-12-12 02:32:50
问题 I am getting a related Catchable fatal error: Object of class WP_User could not be converted to string in /wp-includes/formatting.php on line 766. I found a thread that relates at https://wordpress.org/support/topic/catchable-fatal-error-object-of-class-wp_error-could-not-be-converted-to-string-11 The php I am using, which I think should be working is: add_filter('gform_field_value_pm_first', 'populate_pm_first'); function populate_pm_first($value){ return $user_info = get_userdata(get

Wordpress Theme Customizer - Add area for users to move around and organize widgets

纵饮孤独 提交于 2019-12-04 04:21:27
I am currently developing a Wordpress Theme, using the Theme Customizer to let users customize it, but I have got stuck. For the footer, I have created various widgets, containing different things like Recent Posts, or a Live Twitter Feed. I want the users to be able to organize them, in the order they want, yet I cannot work out how to do it. I found one other theme (Zerif Lite), that lets you do this (see image below), however I went through all the code and couldn't work out they did it, there was nothing adding the 'Our focus section widgets' section. I have organized my theme similarly,