[php]
add_filter( ‘aioseop_add_post_metabox’, ‘sfwd_aioseop_hide_metaboxes’, 11 );
function sfwd_aioseop_hide_metaboxes( $metaboxes ) {
if ( current_user_can( ‘author’ ) || current_user_can( ‘contributor’ ) ) return Array();
return $metaboxes;
}
[/php]
Change Genesis Reponsive Slider to allow multiple slideshows
Out of the box, the Genesis Responsive Slider can only be used in one way on your site because it’s options are set in an options panel. However, you can hook in to every setting, to create different sliders on different pages (although this code will not allow you to have different sized slideshows on every page – we’ll cover that in a future post).
I hook to the ‘wp’ action, because that is late enough for you to be able to calculate what slideshow parameters you may want, but early enough that the slideshow won’t have been generated yet. The parameters are changed by filtering genesis_pre_get_option_*, and a very useful PHP function called create_function.
[php]
add_action (‘wp’, ‘emw_change_slide_show’);
function emw_change_slide_show() {
$slide_show_vars = array(
‘slideshow_timer’ => 8000,
‘slideshow_delay’ => 1500,
‘slideshow_arrows’ => 1,
‘slideshow_pager’ => 0,
‘slideshow_loop’ => 1,
‘slideshow_height’ => 250,
‘slideshow_width’ => 978,
‘slideshow_effect’ => ‘fade’,
‘slideshow_title_show’ => 1,
‘slideshow_excerpt_show’ => 0,
‘slideshow_excerpt_width’ => 30,
‘location_vertical’ => ‘bottom’,
‘location_horizontal’ => ‘right’,
‘slideshow_hide_mobile’ => 1,
‘include_exclude’ => ‘include’,
‘post_type’ => ‘page’,
‘post_id’ => ‘4, 7, 9’
);
foreach ($slide_show_vars as $option => $value)
add_filter ("genesis_pre_get_option_{$option}", create_function (”, "return ‘{$value}’;"));
[/php]
If you want to change the size of the slideshow, as we’ve done for this example, you’ll need a few additional lines (and you’ll need to re-generate WordPress thumbnails after you’ve made the change). Although the code on this page allows you to change the size of the slideshow from the default, you’ll need to have the same size on every page:
[php]
add_action (‘wp’, ‘emw_change_slider_image_size’);
function emw_change_slider_image_size() {
add_image_size (‘slider’, 978, 250, true);
}
[/php]
Finally, if you want to remove the Responsive Slider menu from the admin (because those settings are now overridden):
[php]
add_action (‘init’, ‘emw_remove_responsive_slider_menu’);
function emw_remove_responsive_slider_menu() {
if (is_admin())
remove_action(‘admin_menu’, ‘genesis_responsive_slider_settings_init’, 15);
}
[/php]
Allow editors to edit menus
add this to your theme’s functions.php:
[php]// add editor the privilege to edit theme
// get the the role object
$role_object = get_role( ‘editor’ );
// add $cap capability to this role object
$role_object->add_cap( ‘edit_theme_options’ );[/php]
Tags list on phpmyadmin
If you want to display a complete list of the tags used in a wordpress blog, you can retrive this from phpmyadmin using the following query with “wp_” table prefix (the default)
[php]
ELECT wp_terms.`term_id` AS TagID, wp_terms.`name` AS TagName, SUM( tax.`count` ) AS TagPostCount
FROM `wp_terms`
INNER JOIN wp_term_taxonomy tax ON tax.term_id = wp_terms.term_id
GROUP BY wp_terms.`term_id`
[/php]
Quality SEO
Quality SEO incorporates a positive user experience, leveraging it to work in a brands favor.
Here are some ways to build a great search engine experience and optimize your website to get you ranking first:
Onward and Upward
By carefully incorporating aspects of SEO into your daily workflow, your website will slowly creep its way to the top of search engines. By following these guidelines, your business will grow steadily in the search engines and its reputation will steadily improve. You can further investigate about SEO by visiting websites like https://victoriousseo.com/services/link-building/.
The Way of the SEO
If you are starting a courier business you can can help your website to climb higher in the search engines by implementing five simple strategies, that have built a brand (or at least a reputation) among potential users of Google and its competitor search engines.
Google Search Engine Optimization
Search Engine Optimization is the best method by which you can increase your website’s visibility in the search engines and stay on the top.
This method is most commonly used by medium-sized businesses who are not completely dependent on their web site’s contents. This method is most commonly used by medium-sized businesses who are not completely dependent on their web site’s contents.
Google’s search engine has gone through a transition. While Google still ranks the same way in terms of ranking for a search query, it has increased its automation of the ranking process and eliminated much of the manual work involved in it. To simplify things, Google continues to use three search algorithm for the top ten results when a user searches for a particular word or phrase. However, this process is becoming less and less vital and completely automated in the same way the use of a computer becomes less and less important as the era advances.
Following the basic principle of SEO, it is possible to achieve a number of top ranking positions. However, some sites (both large and small) are faster at handling searches than others.
You are probably wondering if optimizing your website is really necessary. If you have a big website that is designed to display the latest information on the top results, how can you have it ranked first in Google?
Actually, this is true. Large websites that display their information, images, videos and other content in one place will have an advantage in the first search result that a user clicks. This will obviously take advantage of the unique advantages of the internet and open up a large variety of results for the user. So, it is possible to rank first in Google by optimizing your website with the technical knowledge required to make it appear on the first page of the search results.
What matters most in terms of search engine optimization is the first page of results. The content on that first page should be informative and informative only. These first results should be detailed enough to be thoroughly checked by the user. (If you are interested in learning more about Google’s methods for ranking in the top results, please visit this page: Google Website Rankings.)
By optimizing your website, you will increase your search rankings in the search engines and can ultimately drive more traffic to your website. By optimizing your website, you will increase your search rankings in the search engines and can ultimately drive more traffic to your website.