How can I disable widget from being visible on some pages?
There are some plugins that will allow you to do so. But if you prefer total control over the code, then this post should help you.
There are some plugins that will allow you to do so. But if you prefer total control over the code, then this post should help you.
You will need to add XSLT sheet to the RSS declaration. It will automatically beautify the RSS XML. You have a tutorial here Otherwise, just use “Advanced RSS” plugin, that allows you to configure the graphics with it ( via XSLT ). Plugin page here
I have used qTransalte a lot of times… i some cases i have used this kinda of code for widgets and special elements in the design such as the logo / images $bloginfo = get_bloginfo( ‘language’ ); if ($bloginfo == ‘he-IL’) { // hebrew sidebar here } else { // English sidebar here } . … Read more
All details added to question itself. I use a jQuery plugin to load one div and then another. The script added to question is loaded into the theme by added the following code to functions.php: function load_home_rotator() { wp_enqueue_script(‘rotator’, get_stylesheet_directory_uri() . ‘/js/rotator.js’); } add_action(‘template_redirect’, ‘load_home_rotator’ ); jQuery itself is loaded by WP so no need … Read more
I updated your jsfiddle: http://jsfiddle.net/geertdd/gNzun/3/ var $widget = $(‘.widget’); $widget.wrapInner(‘<div class=”inner_widget” />’); var $title = $(‘.widget_title’).remove(); $widget.prepend($title);
You can create your own sidebar if you want. add the following to your functions.php register_sidebar(array(‘name’=>’Sidebar ‘, ‘before_widget’ => ‘<div class=”widget”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<p>’, ‘after_title’ => ‘</p>’, )); and you can use this widget by using the following code <?php dynamic_sidebar(‘sidebar’)?> Hope this helps
I don’t know if the tutorial uses any deprecated function, you can check that enabling WP_DEBUG in your wp-config.php. Anyway, by the time it was written the new Widgets API didn’t exist. The Codex is your friend, read the Codex: http://codex.wordpress.org/Widgets_API And for styling the widgets admin area refer to this post: Highlight custom widgets … Read more
If I get your question right, as you mention Tag in the title, but not in the Content – and also mention a random image but then it’s not a library image but a custom field value… So, the following code will grab 1 random custom post type that has a custom field value that’s … Read more
I don’t know of any widgets or plugins that do this by default. To create this within your theme you would need to write multiple query loop that goes through each category then queries the latest posts from each with a counter so the top post can be styled differently. Quick example. $cats = get_categories(); … Read more
There’s get_the_author_meta() for such a task. (get_* functions normally don’t echo/print the output – hence the name). // Both values are *optional* get_the_author_meta( $field, $user_id ); Normally it’s only meant to be used inside a loop to get the data of the posts author, therefore it internally uses global $authordata;. But, you can also throw … Read more