Edward Caissie
Forum Replies Created
-
Forum: Plugins
In reply to: [BNS Featured Category] caption text is showing in my description@rodorm – Version 2.4 is now available and should correct the issue. Please let me know if it persists after updating.
Forum: Plugins
In reply to: [BNS Featured Category] caption text is showing in my descriptionThank you for your feedback and the screen shot.
I see the issue now. I wasn’t using enough sample test posts before.
What you are seeing is a result of the custom excerpt length function when the post has a captioned image and not enough preceding text to meet the custom excerpt’s maximum words value. I’m seeing this as an unexpected result of specific content.
This plugin is also coming due for its quarterly review so I will note this issue as one to be “fixed”.
Forum: Plugins
In reply to: [BNS Featured Category] caption text is showing in my descriptionI am still unable to reproduce this issue … can you send me a screen shot of the widget options panel showing all of the choices you are using?
Forum: Themes and Templates
In reply to: [twenty twelve theme] how to re-name HomeNo worries, glad to help!
Forum: Themes and Templates
In reply to: [twenty twelve theme] how to re-name HomeYou need to create the PHP file correctly …
tl;dr – Try this http://pastebin.com/J2mwntqm for your
functions.phpcode… all of the examples have been of snippets you could add or use, not complete copy and paste code requiring no additional work on your part.
In this case, based on this link: http://gamingtops.com/wp-content/themes/twentytwelve_child/functions.php
Open that
functions.phpfile and add to the very beginning a new line starting with:
<?phpForum: Fixing WordPress
In reply to: Display category as linkThe snippet of code you are showing really does not provide enough context. It looks to be from a plugin … it may be useful to link to a http://pastebin.com of the code.
Forum: Themes and Templates
In reply to: [twenty twelve theme] how to re-name HomePlease provide a link for your
functions.phpfile as it is producing this issue …Forum: Themes and Templates
In reply to: [twenty twelve theme] how to re-name Home@bluu123 – Unfortunately the Twenty Twelve theme does not have (any?)
function_existschecks so the code you are using in your Child-Theme’sfunctions.phpis conflicting with the Twenty Twelvefunctions.phpcode. What is happening is you are getting errors and these are preventing your site from displaying.For a more explicit example of what I referred to above, please feel free to visit this article I also wrote earlier today: http://wpfirstaid.com/2013/01/change-twenty-twelve-home-menu-name/
Also to note, a Child-Theme will use the complete Parent-Theme
functions.phpfile, you do not need to copy *all* of it into your Child-Theme; and, you should also take into consideration how well the Parent-Theme was written to be extended, and in what fashion, by a Child-Theme, too.Forum: Themes and Templates
In reply to: [twenty twelve theme] how to re-name Home@bluu123 – I created a Child-Theme and tested a working example before posting my original reply. Unfortunately that does not solve your particular instance as my testing was only using specific code written to address this specific issue.
If you are able to share a link to your functions.php file (as in use http://pastebin.com or a similar site) then perhaps what is causing the “blank page” can be sorted out.
Forum: Themes and Templates
In reply to: [twenty twelve theme] how to re-name Home@bluu123 – This may be a bit involved as Twenty Twelve is basically turning on the “Show Home” feature of the WordPress default menu system in the
functions.phptemplate file.IF you look around line 187 in
functions.phpyou will find the following code:/** * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. * * @since Twenty Twelve 1.0 */ function twentytwelve_page_menu_args( $args ) { if ( ! isset( $args['show_home'] ) ) $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );Where the line reads
$args['show_home'] = true;change the word true to what you want the new “Home” name to be (remember to use quotes around the new home name, too).See this codex page for more information: http://codex.wordpress.org/Function_Reference/wp_page_menu
Also to note, the best way to do this is to create a Child-Theme and add a similar code to the Child-Theme’s
functions.phptemplate file rather than modify the Twenty Twelve files as your edits will be reverted with any core updates to the Twenty Twelve theme.See this article I wrote for more details on creating a Child-Theme: http://wpfirstaid.com/2011/04/wordpress-child-themes/
Thank you for the offer of assistance, and I would still appreciate more eyes on the plugin, but I also believe I have found a solution.
It required I sort out a couple of points:
- How to use
wp_localize_scriptto pass a dynamic variable to the script - Putting the JavaScript into a separate file (best practice, but point 1 had to be sorted out first)
- Enqueue the script so it plays nice with everything else
I will be making the commits shortly to Extend (it’s already on GitHub).
@jeremy – Thanks for the references. I can see how there may be similarities with these conflicts; and, I can tell from reviewing the page source the JavaScript in the plugin is being stripped out when the Publicize and/or the Sharing modules are activated, which appears to be the root of the conflict.
Although I have not tested some of the suggestions from your references I also do not see reducing (or eliminating) functionality from one plugin to serve another as the best method to go forward long-term.
I am willing to accept they may be an alternative to writing the dynamic JavaScript I am using, but since the plugin’s initial release I have not been able to successfully refactor the code to work any other way.
Any other suggestions?
Thanks for the response!
Deactivating both Publicize and Sharing modules appears to sort out the conflict; also to note, if only one of the two modules are deactivated the conflict will return.
I currently use the following conditional:
if ( ( is_single() || is_page() ) && Jetpack::is_active() ) { ... }… is there a more specific conditional I can use to test if both of these modules are active in its place?
Forum: Reviews
In reply to: [BNS Corner Logo] WonderfullThank you!
Forum: Plugins
In reply to: [BNS Featured Category] caption text is showing in my descriptionAre you still experiencing this issue? A link to where this is happening would be very helpful.
- How to use