vikingdad
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Adding hyperlinks in home page widgetsAh yes!
You are a legend Xaliber. Thanks a lot for your speedy help 🙂
Forum: Themes and Templates
In reply to: Adding hyperlinks in home page widgetsHi Xaliber
Thanks for the reply.
I´m not 100% sure where to put that tag. In functions.php this is the code for the blog widget.
// **** PRODUCTION - BLOG LIST START **** class prod_blog extends WP_Widget { function prod_blog() { parent::WP_Widget(false, 'Architekt - Blog'); } function widget($args, $instance) { $args['blog_title'] = $instance['blog_title']; prod_func_blog($args); } function update($new_instance, $old_instance) { return $new_instance; } function form($instance) { $blog_title = esc_attr($instance['blog_title']); ?> <p><label for="<?php echo $this->get_field_id('blog_title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('blog_title'); ?>" name="<?php echo $this->get_field_name('blog_title'); ?>" type="text" value="<?php echo $blog_title; ?>" /></label></p> <?php } } function prod_func_blog($args = array(), $displayComments = TRUE, $interval = '') { global $wpdb; //echo $args['before_widget'] . $args['before_title'] . $args['title'] . $args['after_title']; echo $args['before_widget'] . $args['before_title'] . $args['blog_title'] . $args['after_title']; $port_args = array( 'category_name' => 'blog', 'post_type' => 'post', 'posts_per_page' => 5 //'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), ); query_posts($port_args); echo ' <ul>'; while (have_posts()) : the_post(); ?> <li><a>"><?php the_title(); ?></a></li> <?php endwhile; ?> <?php echo '</ul> '; echo $args['after_widget']; wp_reset_query(); } register_widget('prod_blog'); // **** PRODUCTION - BLOG LIST END ****[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
Forum: Themes and Templates
In reply to: wrong edit of functions.phpThanks you cjc, you helped me a lot. Much appreciated. Resolved.
Forum: Themes and Templates
In reply to: wrong edit of functions.phpOk, thanks, I have found the functions.php file
I can delete the bad code but it doesn´t give me any option to save, the bottom of the box seems corrupted somehow.
So when I close it and open it again the code is back.
IS there someway around this, can I delete the functions and upload a clean one?
Forum: Themes and Templates
In reply to: wrong edit of functions.phpThanks Knut. Could you explain how I use FTP?
Thanks a lot.
Forum: Themes and Templates
In reply to: wrong edit of functions.phpThanks, I don´t know how to find it in my control panel
Im using mysql, is that the right place?
Did you solve this? The same thing has happened to me
Forum: Themes and Templates
In reply to: Caption hoverCleared the cache and it works now.
I changed it to left: 0.
Hopefully that works, it does when I look at it in IE.
Thanks again alchymyth. Really helpful 🙂
Forum: Themes and Templates
In reply to: Caption hoverHey that has worked great. Thanks so much alchymyth, I have been trying to do that for so long.
Only one strange thing has happened. On my computer it works fine but when I look at the site on another computer the stylesheet change hasn´t worked and the caption is displayed below the image. Do you have any idea why that would be?
Thanks again
Forum: Themes and Templates
In reply to: Caption hoverJust copy and paste all that code right at the end of the functions.php? Then do the same at the end of the stylesheet?
Forum: Themes and Templates
In reply to: Caption hoverNo they are not embedded in a post, this is the problem, they are in the ´featured image´ thumbnails on the home page.
With the embedded image I can add a shortcut to the html to overlay text using a plugin, but in the ´featured image´ which show on the home page I don´t know how to do it.
Thanks
Forum: Themes and Templates
In reply to: Caption hoverYes I have the caption field filled in on some of the images but still nothing. Any more ideas?
Forum: Themes and Templates
In reply to: Caption hoverI added it to the end of style.css but nothing happened
Forum: Themes and Templates
In reply to: Caption hoverThanks, where do I insert this?
Forum: Themes and Templates
In reply to: Caption hoverBut maybe there is a WordPress plugin that can help me?