Picking a good WP theme or template

There’s many cool looking WordPress themes (templates) out there. One of the most important factors is whether your theme will be supported out into the future. A free theme author is likely to not have the resources to continue with security updates. This eventually leads to an outdated looking and hacked WordPress site. The premium […]

Elegant Themes to change image size in filterable portfolio

\wp-content\themes\Flexible\funtions.php around line 310: change:     $portfolio_query = new WP_Query( apply_filters( ‘et_ajax_portfolio_args’, $portfolio_args ) );     while ( $portfolio_query->have_posts() ) : $portfolio_query->the_post();         global $post;         $width = apply_filters( ‘et_ajax_media_width’, 600 );         $height = apply_filters( ‘et_ajax_media_height’, 480 );         $media = get_post_meta( $post->ID, ‘_et_used_images’, true );         echo ‘<div>’; […]

Posted in Elegant Themes. 1 Comment »

Elegant themes sort project listings

from: https://www.elegantthemes.com/forum/viewtopic.php?f=169&t=127008&p=580906&hilit=filterable+sort#p580906 open template-page-projects.php and try to replace this code: $portfolio_args = array( ‘post_type’ => ‘project’, ‘showposts’ => -1, ‘tax_query’ => array( array( ‘taxonomy’ => ‘project_category’, ‘field’ => ‘id’, ‘terms’ => $et_ptemplate_projectcats, ‘operator’ => ‘IN’ ) ) ); with $portfolio_args = array( ‘post_type’ => ‘project’, ‘showposts’ => -1, ‘orderby’=>’id’, ‘tax_query’ => array( array( ‘taxonomy’ => […]

Posted in Elegant Themes. No Comments »

Elegant Themes sort portfolio page

from: https://www.elegantthemes.com/forum/viewtopic.php?f=143&t=65058&hilit=sort+posts+portfolio Go to the page-template-portfolio.php and replace this code: <?php query_posts(“showposts=$et_ptemplate_gallery_perpage&paged=$paged” . $gallery_query); ?> with <?php query_posts(“showposts=$et_ptemplate_gallery_perpage&meta_key=keyname&orderby=meta_value&paged=$paged” . $gallery_query); ?> Where keyname is a name of custom field. Note that the sorting will be alphabetical which is fine for strings (i.e. words), but can be unexpected for numbers (e.g. 1, 3, 34, 4, 56, […]

Posted in Elegant Themes. No Comments »

Elegant Themes remove links to post for Filterable Portfolio template

To remove links from excerpts using Elegant themes (Filterable Portfolio) /wp-content/themes/Flexible/functions.php (Around line #344 for Flexible theme v1.7) -> To remove links from Ajax code on “Filterable portfolio” template, so clicking on image won’t load (redundant) post. Note: There is no template to edit. // change link for image here // original line           […]

Posted in Elegant Themes. No Comments »

Elegant Themes to set the post excerpt length

To set how long the summary length is for auto excerpt on posts with Elegant Themes Ajax: Note: There is no template to edit. /wp-content/themes/Flexible/functions.php ( around line #350) -> // truncate post excerpt for elegant themes set here (was 560) truncate_post( 960, false )

Posted in Elegant Themes. No Comments »

WordPress Themes

Working with WordPress since 2007 as a pro, my advice: pick a theme that you can work on the backend too! If you want widgets only on certain pages, or a different header for each page, truse a theme that has a WordPress Frameworks on the backend. A pretty theme may not be easy to […]