Edward Caissie
Forum Replies Created
-
See my response on your original “Post Title” thread http://wordpress.org/support/topic/plugin-bns-featured-category-option-to-not-use-post-titles-and-how-to-reduce-spaces
Just saw this “second” post … let’s carry on from here instead of the other post.
IF you could share a link to your site I may be able to sort out the CSS you may need … otherwise you can look at (or near) line 262 in the code.
@rawdolphe – The exact CSS would most likely be relevant to the active theme on your site as there is currently no specific CSS container for the post title in the plugin.
@rawdolphe – Thanks for the added description of the feature request; I’ll definitely consider it, but it may not make it into the next release … although the following release has a very good chance of seeing it.
Thank you both! Note I did not “beta” tag this GitHub version, please remember to check when the plugin is updated in Extend although I do not expect there to be any changes from now until then.
Would be great if there was an option/tick box to remove Post Titles
… as in only show, for example, Featured Images?! I’m sure it is possible although I do not know if the aesthetics of the idea would display well. I’ll have to think on this idea.
@rawdolphe – Thanks to @kesava’s idea above, the next version of BNS-FC will have the Featured Images linked to the posts.
Although I have not released it on the Plugin repository, yet, it is available at GitHub, https://github.com/Cais/bns-featured-category
As far as I have tested the GitHub version is working fine … I’ll likely package it up and release it later in the week.
The current working version of the plugin has the featured images being handled around line 268.
Each instance of
the_post_thumbnail()could be wrapped in an appropriate anchor tag (see the code around line 250 as an example) and you should see the results you are looking for.I’ll have a look at this as an enhancement to the plugin with a future update as well. Thanks for the idea!
Forum: Plugins
In reply to: [BNS Featured Category] [Plugin: BNS Featured Category] not workingTo the best of my knowledge, and testing, this plugin works with WordPress 3.3.2 and 3.4 in the standard current versions of the “top 5” major Internet browsers; can you provide more details specifically describing what the issue is you are experiencing?
@dave – Thanks.
I intentionally did not style a great many points in the plugin but I do allow for a custom stylesheet to be used that will retain any additional styles you may add.
As to “any data/feedback”, I do not have anything nor am I aware of any other studies; essentially the plugin is simply running a very customizable loop and I would suspect it uses not much more if any additional resources than what your theme’s standard loop (only) uses.
Eureka!
Well, sort of … I just quickly modified the plugin to add a “no excerpt at all” option. This is part of the 2.1-alpha version … it needs more testing in a few areas (maybe this option, too).
If you would like to try it, download the plugin from its GitHub repository here: https://github.com/Cais/bns-featured-category
Forum: Plugins
In reply to: [BNS Add Widget] [Plugin: BNS Add Widget] Widget area in the headerThe plugin uses an action to hook into wp_footer:
add_action('wp_footer', 'BNS_Add_Widget_Hook');Depending on your theme, there may be an appropriate place to hook to create a “widget area in the header”.
Forum: Themes and Templates
In reply to: How to change location of tags from above post to after post.@capefox – It’s WordPress … anything is possible! (*grin*)
First off, thanks for choosing Ground Floor as your theme. This question also serves as a reminder the theme needs to be reviewed and updated. That being the case I will start by suggesting you create a Child-Theme before attempting to edit, or have edits made, to the core Theme files.
See this article I wrote regarding Child-Themes for more details: http://wpfirstaid.com/2011/04/wordpress-child-themes/
IN this case, for the current version (1.8), you will need to have at least two of the template files modified to accomplish what you are looking to do, ‘index.php’ and ‘single.php’. (Similar modifications may apply to ‘page.php’ as well, depending on the scope of the changes you want to make.)
The section of the code you are looking for is the block wrapped by the
div class="post-details"element. Simply cut and paste this block of code below … um, well, somewhere further down the file; I would think at least past the line starting with<?php the_content(you will have to decide the aesthetic placement yourself.Please remember to makes back-ups first … before making any modifications to the Theme files.
Use this code as a replacement of the original
echoline:echo $before_title . '<span class="bnsfc-cat-class-' . $cat_choice_class . '"><a href="' . get_category_link( $cat_choice ) . '">' . $title . '</a></span>' . $after_title;Again, the same conditions apply but this was quickly tested in a local environment and appears to work at first glance.
First off, make a back-up of the plugin … just in case.
Next, you will be looking at this line of code:
echo $before_title . '<span class="bnsfc-cat-class-' . $cat_choice_class . '">' . $title . '</span>' . $after_title;The key is the
$titlewhich will need to be wrapped in an<a href=>construct along the lines of:
<a href="<?php get_category_link( $cat_choice ); ?>">$title</a>The above is untested (and the reason I recommended the backup first); it will likely cause a 404 result if more than one category is used in the widget instance; and, will be over-written when version 2.0 of the plugin is released in the near future. Also to note, the entire code line will need to be re-written as the
echowill no longer produce the correct results.I do like the idea, and will make a note to review it further for possible inclusion in future releases of the plugin, in the meantime keep track of your changes in case it is not included.
I don’t think its very noticeable in some themes; but if the theme’s widget(s) use any sort of decoration/image in or around the
$titlearea. It becomes more obvious due to the ad images floating on top of the widget below the WP125 instance obscuring part of the top of that widget.PS: Thanks for the replies.