Archivio

Posts Tagged ‘wordpress’
28 ott

10 Professional Minimal WordPress Themes

Whitespace, good typography, and a solid layout are all important aspects of a good design, and especially a minimal design. When these three elements are executed correctly, it translates into a highly professional look. If you’re a WordPress user, the problem is that finding a solid minimal theme can be a challenge. So for this post, we’ve rounded up 10 Professional Minimal WordPress Themes.

Pure

minimal wordpress

Pure is a super clean and minimal blog theme. Pure will give your blog an elegant and sophisticated feel without getting in the way of your content. Great typography and a good amount of white space make this theme stand out.

ThemeMin

minimal wordpress

ThemeMin is a minimal, light-weight and typography-focused theme. It promises to provide comfort reading and fast loading. There is no images used in the theme (except the RSS icon).

Structure

minimal wordpress

Structure is designed to adopt the style of the content added. It features 2 color options — a white version and a black version.

Press

minimal wordpress

Press is a versatile minimalist theme featuring classic typography and clean lines.

Canvas

minimal wordpress

Canvas is a highly customizable blog theme with a clean and minimal design.

Specialist

minimal wordpress

Specialist is a simple elegant theme for small business website. Specially created for small business and individual professionals.

Vigilance

minimal wordpress

Vigilance is clean, elegant, search engine optimized, and packed with features.

InkDrop

minimal wordpress

InkDrop is a blog/portfolio/business hybrid with lots of style packed into a minimalist design.

Verbage

minimal wordpress

Verbage features a clean, modern design with a focus on typography. The theme is developed to function perfectly with — or without photos added.

Monochrome Pro

minimal wordpress

Monochrome Pro is a minimal theme that is perfect for a news or magazine website.

Disclaimer: The Pure theme is a product of Theme Trust, which is founded by Henry Jones, who is also founder of Web Design Ledger.

Categorie:Senza categoria Tag: Commenti chiusi
22 ott

How to Simplify WordPress Custom Fields Layout for a Layman?

We are already aware of the incredible power and flexibility of WordPress, which is one of the biggest reasons for its popularity among its users. And, if we look at the reasons for its flexibility, the first thing that comes to our mind is Custom Field.

Custom fields enable you to add any additional information to your posts and pages. It’s like defining your own variables and values for posts/pages. Custom Fields are powerful tools for customizing template files; these are special fields in the WordPress database that you can create yourself by giving them a name (which can be then shared by all other posts or pages) and assigning a value for the particular post.



This arbitrary extra information is known as meta-data. Meta-data is handled with key/value pairs. The key is the name of the meta-data element. The value is the entered information that will appear in the meta-data list on each respective post. Shown below the screenshot of the word press option where we add custom fields while adding/editing a post/page.

instantShift - How to Simplify WordPress Custom Fields Layout


NOTE: In the examples for Custom fields shown below, we explain about adding 5 custom fields for “Artists” post to store the additional information for an artist i.e. “artist image”, “2 small images of artist’s artwork” and “2 large images of artist’s artwork” along with many other custom fields.

Though Custom fields are really flexible they’re not perfectly user-friendly, especially for a layman.

Here are the main reasons:

  • 1. It shows all the added custom fields in a drop-down where the user has to select the required Custom Field – KEY manually to enter the VALUE. This increases the possibility of error due to invalid/inappropriate key selection and it is hard to identify the custom field – KEY where many Custom fields are defined. This is how it looks:

instantShift - How to Simplify WordPress Custom Fields Layout


  • 2. Also, sometimes In order to make things easier for users we add inline tips, and inputs (in the form of suggestions or examples) appropriate to the field. This is not there in the above case. For a normal User, submitting a ready-made form is always much easier then selecting a key and then adding value for that key.

    How to change this layout to make it more user-friendly and easy to understand?

    With a very little knowledge of PHP, you can change this default display of Custom fields and present it in a much simple, user-friendly and easy to understand layout for your user.

    It looks like this:

instantShift - How to Simplify WordPress Custom Fields Layout


To present your custom fields in a proper manner, and group related fields, you need to add the following piece of code into your theme’s functions.php i.e. \wp-content\themes\your_theme\functions.php

Step 1

Create an array to define custom fields and information to generate the form.


 $arr_artist_details = 
  array (
              "artist-image-url"  => array(
              "name" =>  "artist-image-url", // custom field name i.e. the KEY
              "type" =>  "input", // type of custom field i.e. required form's element type  could be input/textarea/select etc ...
              "title"  => "Artist Image URL", // title to be used for the key i.e. form's  label
              "description"  => "field description / help tip", // field description (if any)
              "scope"  => array("post","page")), // define the scope in  posts/pages
              
              "artwork1-small-image-url"  => array(
              "name" =>  "artwork1-small-image-url",
              "type" =>  "input",       
              "title"  => "Artwork 1 Small Image URL",
              "description"  => "field description / help tip",
              "scope"  => array("post","page")),
              
              "artwork1-large-image-url"  => array(
              "name" =>  "artwork1-large-image-url",
              "type" =>  "input",
              "title"  => "Artwork 1 Large Image URL",
              "description"  => "field description / help tip",
              "scope"  => array("post","page")),
              
              "artwork2-small-image-url"  => array(
              "name" =>  "artwork2-small-image-url",
              "type" =>  "input",       
              "title"  => "Artwork 2 Small Image URL",
              "description"  => "field description / help tip",
              "scope"  => array("post","page")),
              
              "artwork2-large-image-url"  => array(
              "name" =>  "artwork2-large-image-url",
              "type" =>  "input",
              "title"  => "Artwork 2 Large Image URL",
              "description"  => "field description / help tip",
              "scope"  => array("post","page"))         
  ); 


Step 2

Function to generate the form for the above array.


function  generate_artist_form() {
              global $post, $arr_artist_details;
              
              foreach($arr_artist_details as $meta_box) {
                          
                          echo'<input type="hidden"  name="'.$meta_box['name'].'_noncename"  id="'.$meta_box['name'].'_noncename" value="'.wp_create_nonce(  plugin_basename(__FILE__) ).'" />';
                          
                          echo'<div><span  style="width:200px;  float:left">'.$meta_box['title'].'</span>';
                          
                          if( $meta_box['type'] == "input" )  { 
                          
                                      $meta_box_value =  get_post_meta($post->ID, $meta_box['name'], true);
                          
                                      if($meta_box_value ==  "")
                                                  $meta_box_value =  $meta_box['std'];
                          
                                      echo'<input  type="text" name="'.$meta_box['name'].'"  value="'.$meta_box_value.'" size="98" /><br />';
                                      
                          } elseif ( $meta_box['type'] ==  "select" ) {
                                      
                                      echo'<select  name="'.$meta_box['name'].'">';
                                      
                                      foreach ($meta_box['options'] as  $option) {
                  
                                                  echo'<option';
                                                  if (  get_post_meta($post->ID, $meta_box['name'], true) == $option ) { 
                                                              echo '  selected="selected"'; 
                                                  } elseif ( $option ==  $meta_box['std'] ) { 
                                                              echo '  selected="selected"'; 
                                                  } 
                                                  echo'>'.  $option .'</option>';
                                      
                                      }
                                      
                                      echo'</select>';
                                      
                          }
                          
                          echo '</div>';
                          echo'<p><label  for="'.$meta_box['name'].'">'.$meta_box['description'].'</label></p>';
              }

}


Step 3

Function to save the post data i.e. handle the save action.


function  save_form_data( $post_id ) {
              global $post, $arr_artist_details;

            foreach($arr_artist_details as  $meta_box) {  

                        if ( !wp_verify_nonce(  $_POST[$meta_box['name'].'_noncename'], plugin_basename(__FILE__) )) {  
                                      return  $post_id;  
                          }  
              
                          if ( 'page' ==  $_POST['post_type'] ) {  
                                      if (  !current_user_can( 'edit_page', $post_id ))  
                                      return  $post_id;  
                          } else {  
                                      if (  !current_user_can( 'edit_post', $post_id ))  
                                      return  $post_id;  
                          }  
                          
                          $data =  $_POST[$meta_box['name']];  
                          
                          if(get_post_meta($post_id,  $meta_box['name']) == "")  
                                      add_post_meta($post_id,  $meta_box['name'], $data, true);  
                          elseif($data !=  get_post_meta($post_id, $meta_box['name'], true))  
                                      update_post_meta($post_id,  $meta_box['name'], $data);  
                          elseif($data ==  "")  
                                      delete_post_meta($post_id,  $meta_box['name'], get_post_meta($post_id, $meta_box['name'], true));                          
              }
  }


Step 4

Function to create Custom field meta box (by using WP’s add_meta_box() function and passing the "generate_artist_form" function as a parameter).


function  create_meta_box() {
              global $theme_name,  $arr_artist_details;
              
              if (function_exists('add_meta_box'))  {                                   
                          add_meta_box(  'my-custom-fields', 'Gallery - Artist Details', 'generate_artist_form', 'post',  'normal', 'low' );                         
              }
  }


Finally, Hook the functions to specific actions.


add_action('admin_menu',  'create_meta_box'); add_action('save_post',  'save_form_data');


It’s as simple as that, even with limited knowledge in PHP, you can simply paste this code in your functions.php file and carefully do the changes.

Additional tips:

  • You can rename the array name and the custom functions like generate_artist_form(), save_form_data() and create_meta_box() as per your requirement. If you are doing this, make sure to replace all its occurrences.
  • If you want to add different form fields other than "input", you need to specify the related "type" in the array and add a condition based on the type to generate that field in "generate_artist_form" function (in this case)
  • No changes are required in the save_form_data function.
  • Custom fields box/block heading can be changed from create_meta_box() function. Here the second argument used in the add_meta_box() function is the one which needs to be changed in this case. For complete details, kindly refer WP reference.


Image Credits

Categorie:Senza categoria Tag: Commenti chiusi
14 ott

10 Excellent WordPress Themes for Portfolios and Galleries

Themes can extend WordPress into much more than just a blogging platform, and it’s common for theme developers to create themes with a focus on specific niches. For example, a few weeks ago we posted a collection of business WordPress themes that were aimed at giving business owners an easy way to get a great looking site online. So for this post, the focus is on portfolios and galleries. We’ve rounded up 10 themes that are ideal for designers and photographers who don’t have web design skills to build their own portfolio site. The themes we selected for this post are well designed and do an excellent job of presenting the content in a professional manner.

Work

wordpress portfolio theme

Work is an elegant portfolio theme built for showing off your work. This theme has a clean and professional style that is perfect for displaying anything from illustrations to photography. Easily build your portfolio with the numerous built-in page templates that give you the ability to create one, two, three, and four column gallery layouts.

On Assignment

wordpress portfolio theme

On Assignment is primed for photographers, videographers and journalists who need to feature their portfolio and connect with followers and potential clients with status updates and news/blog posts.

Photography

wordpress portfolio theme

Photography is a theme built for photographers. Includes easy to use galleries, integrated Flickr support, and two gorgeous color schemes.

Portfolio

wordpress portfolio theme

The Organic Portfolio Theme offers a clean, professional way of displaying artwork, design, photography and more. The theme features a portfolio category template that allows for 1, 2 or 3 column layout, a featured content slider, additional portfolio page templates and an options page for easily changing the content of the home page.

Blogfolio

wordpress portfolio theme

Blogfolio is an advance theme that provides unique layout options to display your portfolio and blog posts. It is designed to give maximum space to display your work.

Photolist

wordpress portfolio theme

A minimalist theme for Photographers and bloggers alike with features such as image filters and a unique gallery slider.

Widescreen

wordpress portfolio theme

Widescreen is a photography theme for WordPress that features multiple homepage layout and design options including a fullscreen slideshow, a homepage video, featured posts and much more.

deLucide

wordpress portfolio theme

deLucide is a very sleek and elegant portfolio theme to showcase your photos or any other work in a professional and lucent design.

DeepFocus

wordpress portfolio theme

DeepFocus lets you turn your WordPress blog into a fully functional online photo gallery while still maintaining all of the features of a normal blog. Along with the gallery layout, DeepFocus comes with a robust blog and CMS-style homepage as well, making it an amazing solution for artists/photographers looking to build an online presence.

Aperture

wordpress portfolio theme

Aperture is a multi-functional photo-blogging theme with a unique home page, consisting of a latest posts slider, a visual category display, a blog module and lots of stylish widgetized spaces.

Disclaimer: The Work theme is a product of Theme Trust, which is founded by Henry Jones, who is also founder of Web Design Ledger.

Categorie:Senza categoria Tag: Commenti chiusi
30 set

WordPress – Atahualpa link color

wordpress-logoWordPress 3.0.1

Atahualpa 3.4.9

Per una migliore presentazione grafica si desidera avere il colore dei link testuali diverso dal solito blu. Considerato il formidabile pannello di controllo di Atahualpa, sembrerebbe un gioco da ragazzi, ma non lo è. Differenti configurazioni e differenti plugin possono intervenire a complicare questa altrimenti semplice configurazione. Questa è la descrizione delle modifiche che ho dovuto effettuare per riuscire a cambiare il colore di TUTTI i link in TUTTE le pagine di www.euganei.it :

1- Bacheca/Aspetto/Atahualpa Theme Options (ATO): selezionare il tab “Body, Text & Links” , settare “Link Default Color” sul colore desiderato. E già che ci siete settate pure “Link Over Color” così da ottenere il roll-over desiderato. A questo punto, nel mio caso, avevo la home page perfetta. Aprendo però post da categorie o archivio o pagine tutti i link erano ancora in blu.

2- Tab “Style Posts & Pages” , settare “HEADLINE Box: Links” , “HEADLINE Box: Links: Hover”, “FOOTER Box: Links”, “FOOTER Box: Links: Hover” sui colori desiderati. Questo risolve i titoli dei post ed i link del footer.

3-  Tab “Add HTML/CSS Inserts” nella finestra “CSS Inserts” incollate il seguente codice:
/* widgets link color */
div.widget ul {
list-style-type: none !important;
}
div.widget a:link,
div.widget a:visited,
div.widget a:active {
border-left: 0 !important;
padding-left: 0 !important;
color: #8D744A !important;
text-decoration:none;
}
div.widget ul {
list-style-type: none !important;
}
div.widget a:hover {
color: #365DA0 !important;
text-decoration:underline;
}

Questo risolve il colore dei link nelle sidebars.

4- Sempre nella finesta CSS inserts incollate questo codice:
/* read more link color */
.more-link { color: #8D744A !important; }
.more-link:hover { color: #365DA0 !important; }

Questo risolve il colore del link “Read More”-”Prosegui la lettura”.

5- Sempre nella finesta CSS inserts incollate questo codice:
/* older-newer-posts link color */
div.older a:link, div.older a:visited, div.older a:active {
color: #8D744A;
}
div.older a:hover {
color: #365DA0;
}
div.newer a:link, div.newer a:visited, div.newer a:active {
color: #8D744A;
}
div.newer a:hover {
color: #365DA0;
}

Questo risolve il colore dei link “Articoli precedenti” – “Articoli recenti”

Ti è stato utile questo post? lascia un commento!

11 ago

Themify Launched

You may probably notice that I haven't been updating Web Designer Wall for a while. I've been working very hard on a new project called Themify, a premium WordPress theme shop. It is a collaboration with Darcy Clarke, who is an amazing developer. Each theme is packed a framework and bunch of custom widgets. With [...]
Categorie:General Stuffs Tag: Commenti chiusi