Filter A Text String In WordPress
Add the following to your theme’s functions.php file to edit a string of text.
Useful for changing something in a core file without editing it.
function youruniqueprefix_filter_gettext( $translated, $original, $domain ) { // This is an array of original strings // and what they should be replaced with $strings = array( 'View all posts filed under %s' => 'See all articles filed under %s', 'Howdy, %1$s' => 'Greetings, %1$s!', // Add some more strings here ); // See if the current string is in the $strings array // If so, replace it's translation if ( isset( $strings[$original] ) ) { // This accomplishes the same thing as __() // but without running it through the filter again $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'youruniqueprefix_filter_gettext', 10, 3 );
Change Layout Based on Height
Change layout based on height
@media only screen and (max-height: 600px) { // something awesome here }
Change a layout based on width or height
@media only screen and (max-width: 1060px), screen and (max-height: 600px) { // something awesome here }
Change a layout based on width and height
@media only screen and (max-width: 1060px) screen and (max-height: 600px) { // something awesome here }

Collegeville Institute
http://www.collegevilleinstitute.org
- WordPress
- Gravity Forms
- Genesis
- bbPress Forums
- Slider
- Resize on small width or height
Recent Comments