hd.design
Forum Replies Created
-
In answer to my own question in case anyone else wants to know. It will take inline css styles but not those from the stylesheet – as best as I can tell.
My situation is complicated by the fact I am creating dynamic content using a csv to table script and so I am appending the csv to table plugins php file to add the inline styles.
Thanks Sledge!
It seems to populate the search form into a table.
You can make adjustments by editing the simplemap.php file in the folder – plugins/simplemap/classes.
Around line 1800 you will find an array that controls the way the table is displayed – you could try changing the number of columns to 1 or 2 instead of 3 by changing this property…
'search_form_cols' => 3,
Forum: Fixing WordPress
In reply to: How to make a Blog menu which shows ALL Categories?Chip,
Not sure if you are still looking for a solution – but in case anyone else is…
I spent half an hour looking for an easier way, but couldn’t find one. So in the end I found the easiest way is;
- Create a custom template that lists posts (I called it ‘List Posts’)
- create a page using that template
- add that page to your menu
As an added bonus this method allows you to put a heading and some text above the list of posts (in case you want to preface them with a general statement).
To help out here is the code for the template I made;
<?php /* Template Name: Post List */ ?> <?php get_header(); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div id="content"> <h1><?php the_title();?></h1> <?php the_content();?> <?php endwhile; ?> <div id="post_list"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(''); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post_repeater"> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> <p><?php the_excerpt(); ?></p> <p><a href="<?php the_permalink(); ?>">> read more</a></p> </div> <?php endwhile; else: endif; ?> </div><!-- end post_list div --> <div class="navigation"><p><?php posts_nav_link(); ?></p></div> <div style="clear:both;"></div> </div><!-- end content div --> <?php get_sidebar(); ?> <div style="clear:both;"></div> <?php get_footer(); ?>
Hope that helps you or someone else.
Cheers,
Adam.
Forum: Plugins
In reply to: [News-Ticker] News-Ticker White Background problem in IEAs a heads up, for whatever reason in the WP install I have the output from news-ticker isn’t including the LI elements, so the above fix won’t work.
Instead I had to slightly change it to…
ul#news-ticker { background:none !important; overflow:hidden; } ul#news-ticker A { background:none !important; overflow:hidden; display:none; }
In order to get the white background to disappear in IE8.
Forum: Plugins
In reply to: Change “File URL” and “Link to Image” button functionalityCame here wanting ot do the same thing.
After a lot of googling, some fumbling at adapting other code snippets and some help from some much better coders, I can help you with the media library part. You can use this in your theme’s ‘funtions.php’ to filter out the ‘File URL’ button and replace it with a button that generates a link to a specified image size (medium in the example).
add_filter('attachment_fields_to_edit', 'medium_attachment_fields_to_edit', 0, 2); function medium_attachment_fields_to_edit($fields, $post){ if (substr($post->post_mime_type,0,5) == 'image'){ $fields['url']['html'] = preg_replace("/<button type='button' class='button urlfile' title='(.)*'>(.*)<\/button>/Ui", "<button type='button' class='button urlfile' title='".esc_attr(array_shift( wp_get_attachment_image_src($post->ID, 'medium', false) ))."'>Medium Image</button>", $fields['url']['html']); } return $fields; }
Forum: Plugins
In reply to: creating link to large/medium image while inserting in textThere is an easy way to add an additional button with a filter in your functions.php template file…
I’m playing around with this filter to make ‘medium image’ and ‘none’ the only two options.
Forum: Plugins
In reply to: [Lightbox 2] [Plugin: Lightbox 2] Not functional WordPress 3.1 and IE8Had a similar issue where there was a conflict between Nivo and Lightbox 2 which was only showing up in IE8.
Fix in the end was to roll back the prototype.js version supplied with WordPress (/wp-includes/js/prototype.js) from 1.6.1 to 1.6.0.2 which I luckily had lying around from a previous project.
Hope this info spares someone the time I spent searching for a solution…