Forum Replies Created
-
AuthorPosts
-
Gary JonesMember
Here's how you add a nav extra of a date - you can amend the date stuff with whatever the code is for google custom search engine:
add_filter( 'wp_nav_menu_items', 'gmj_add_date_menu_item', 10, 2 );
/**
* Add date menu item to end of existing menu items.
*
* @author Gary Jones
*
* @param string $items Menu items already converted to a string of markup.
* @args stdClass $args Menu arguments.
*
* @return string Amended markup.
*/
function gmj_add_date_menu_item( $items, stdClass $args ) {
// Limit to a certain menu location
if ( 'primary' != $args->theme_location ) {
return $items;
}
// Straight concatenation here. Could prepend, or do a regex replace to
// insert the menu item elsewhere
$items .= '' . date_i18n( get_option( 'date_format' ) ) . '';return $items;
}
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberHave you tried just entering:
<!--nextpage-->
in your Page content where you want the next page to start? It works for Posts - never tried it for Pages.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberThat purple is being applied via theย #5C2E91 value around line 261 of your style.css file. You'll need to amend this CSS.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
March 4, 2013 at 5:00 pm in reply to: Would love feedback on my first Genesis site after being a Thesis girl! #24153Gary JonesMemberFor favicons, you'll need to use FTP and upload a favicon.ico file to your theme's images file.
Interesting little layout ๐
Suggest using the official Twitter logo, as per their branding guidelines, and I think the G you have is more for Google, than Google+.
Beyond that, welcome to the Genesis community!
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberFor those watching the thread, I answered Jo off-board regarding the set-up. We've gone for BuddyPress member profiles, with a plugin or two to customise it. If any of you have lots of experience with using BP, please make yourselves known ๐
tomos - I like that idea - a checkbox field or two for "Has been to a WordCamp", "Has presented at a WordCamp" or something similar. Not sure that end clients looking for a Genesis designer or developer will all care about that though, so may be better for members to include that in their bio, if they wish.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberI don't think the irony is lost, that the OP may never have found previous threads raised about the issue of not being able to search out previous threads about an issue...
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberGreat to see folks showing their support, and willing to make a financial contribution too, which I wasn't expecting.
Jo has agreed to lead the development of the project, so until the site is up and running, we'll keep this thread as the source of information. If you are on Twitter and Jo hasn't added you to her https://twitter.com/CalliaWeb/genesiswpuk/members list, please give her a nudge ๐
What information should be available on a profile?
My initial suggestion: Name, company name, website URL, Twitter link, skills taxonomy (designer, developer, etc.), general blurb, some sort of note about whether they work with end clients / other web professionals / both.
Any other points of information that the listing should have, for which the majority of folks would want to fill-in for their profile?
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberWhile you and Otto will find the code more than self-explanatory, there are some lower-level users who won't immediately understand what's going on with the snippet. There's a couple of implicit assumptions that non-coders may not get from your first snippet:
* The value passed in is an array, one which contains values for lots of comment-related stuff.
* Avatars are square - by size, it means the length of a side, in pixels.In addition - your first extra comment says it's for gravatars, and that may not be true. I didn't see your second comment initially, as it's tucked away with the code (in this non-syntax-highlighted environment).
In six months time, when someone is looking at their code, wondering if they can use it on another project, or trying to remember what it does, then having a points of reference of who initially wrote it, and where they might have copied it from is going to be useful to them.
Those developers who already fully document their code and perhaps use documentation generating applications appreciate being able to copy and paste an already-fully-documented snippet.
It's really not about the number of lines of documentation versus the number of lines of code - it's about providing as many explanatory notes as possible for future you (or here, the rest of the Genesis community) about what the code does. Those who don't need the full documentation can either delete it, or leave it in, with no ill-effect.
We each have our own styles for private coding of course, but when you're starting a new thread for the express purpose of sharing a useful bit of code, it makes sense to make that snippet use WP code standards and be as fully documented as possible, for the hundreds or thousands of people who will see or use it in their own projects, thereby saving them work, helping future them, and promoting good practice.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMember> I wouldn’t mind a small (yearly?) charge to list myself and my website as well as the services that I offer
Tomos - what sort of amount were you thinking would be fair?
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberHead to Genesis -> Theme Settings - the Archive box contains an option for newer / older, previous / next, and numbered variations for pagination.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberChange the $(...) for jQuery( ... )
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberTwo SP points for Carrie ๐
If you're using the query_args trick, then it only works if the page template is set to the Blog page (does mention this in Step #1 on the tutorial).
The better way, seeing as you only want a title and introduction for your category archive, is Carrie's second suggestion - go and edit the category, add an archive headline and intro, and save.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberWhat? No code standards? No documentation? A number given as a string? ๐
https://gist.github.com/4582232
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
January 13, 2013 at 6:47 pm in reply to: Note for Studiopress: get error msg each time I post #11703Gary JonesMemberThe URL you posted has got an extra /forums/ in it, hence the breakage. That looks like a configuration setting, or a bug in bbPress.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberA font stack that sticks to all sans-serif fonts would have been a better suggestion, especially ones that other operating systems may have a chance of falling back to if Arial is not available.
Also,, no need for quotes around Arial - it's a single word.
A typical stack would be:
font-family: Arial, Helvetica, Tahoma, sans-serif;
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberYou can help the Simple Dropbox authors, by the error message specific to that plugin to them, and pointing them toย http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/
I'll nudge David here to help with the original widgetized footer plugin.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberCheck the JS console - you have errors:
Failed to load resource: the server responded with a status of 404 (Not Found) http://avance2.26mi.com/wp-content/themes/education/interactivemap.css
Uncaught TypeError: Object [object Object] has no method 'colorbox' avance2.26mi.com:286
Uncaught TypeError: Object [object Object] has no method 'dataTable' avance2.26mi.com:317
2Uncaught TypeError: Cannot call method 'setCenter' of null
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberTry using a different browser - there's was an issue was IE8 (I think) when using the layout selector - I can't remember if it got fixed or not.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
January 13, 2013 at 3:51 pm in reply to: Note for Studiopress: get error msg each time I post #11665Gary JonesMemberDoes it matter if you choose the Notify option?
What 404 page is it trying to send you to?
(I have something almost similar - I get redirected to wp-admin with no apparent permssions to do so.)
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
Gary JonesMemberYou've got an
is_author
in there instead of an
is_author()
and this may be coming up as true, so always showing the box via the second function.
I also think that:
if ( get_post_type() == “post” && is_single() && ! ( is_category() || is_tag() ) )
could be simplified to:
if ( is_singular( 'post' ) )
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
-
AuthorPosts