Twitter feed is showing blank in WP site [closed]

It is very likely because you are using the old Twitter API, for example: <script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/USERNAME.json?callback=twitterCallback2&amp;count=4″> You will need to update your code to the new API: http://api.twitter.com/1/statuses/user_timeline.json?screen_name=USERNAME&include_rts=true&count=4&callback=twitterCallback2 This requires that you edit the code of the theme. Many themes suffered this issue for a few months ago when Twitter made their changes.

Customising widget titles/headings in WP 5.8

You’re right. I didn’t notice it before ! If you look at the code, you can see that Widgets are now showed from /wp-includes/widgets/class-wp-widget-block.php which extends /wp-includes/class-wp-widget.php The first file is a new one introduced in WP 5.8. In there you can see that the widget is now displayed through widget_block_content filter which use the … Read more

add_theme_support( ‘custom-header’ ) does not add option menu in dashboard

From Codex: If attached to a hook, it must be after_setup_theme. The init hook may be too late for some features. Try this if ( ! function_exists( ‘mytheme_setup’ ) ): function mytheme_setup() { add_theme_support( ‘custom-header’ ); } endif; add_action( ‘after_setup_theme’, ‘mytheme_setup’ ); If you use Toolbox Theme, find in functions.php function toolbox_setup() { and add … Read more

Nice scroll to wordpress

wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call $(document).ready( function() { jQuery(“html”).niceScroll(); } ); or the following syntax which define $ $(document).ready( function($) { $(“html”).niceScroll(); } );

Enqueue different stylesheets using IE conditionals

While basic use of CSS IE conditionals is off-topic for WPSE, WordPress does include a method for enqueueing stylesheets conditionally, based on CSS IE conditionals. First, you need to use the correct conditionals: <!–[if lt IE 9]> ie.css <![endif]–> Second, you should enqueue this stylesheet properly, in functions.php, via callback hooked into wp_enqueue_scripts: <?php function … Read more

How do I change the fonts in the Twenty Thirteen theme?

I looked at TwentyThirteen’s twentythirteen_fonts_url() function and there are no hooks so you need to deregister twentythirteen-fonts and enqueue your own fonts. Removing the fonts is easy: function deregister_gfonts_wpse_111190() { wp_deregister_style(‘twentythirteen-fonts’); } add_action(‘wp_enqueue_scripts’,’deregister_gfonts_wpse_111190′,100); Add your own Google fonts (or other) the same way that TwentyThirteen did. You will need to add another stylesheet to override … Read more