Genesis Simple Hooks

Por Nathan Rice
(22 avaliações)
Baixar
  • Versão:
    2.3.0
  • Última atualização:
    há 4 meses
  • Instalações ativas:
    mais de 20 mil
  • Versão do WordPress:
    4.7.2 ou maior
  • Testado até o WordPress:
    6.9
  • Versão do PHP:
    ou maior

Hospedagem WordPress com plugin Genesis Simple Hooks

Onde hospedar o plugin Genesis Simple Hooks?

Este plugin pode ser hospedado em qualquer hospedagem que tenha WordPress configurado. Recomendamos optar por um provedor de hospedagem de confiança, com servidores otimizados para WordPress, como o serviço de hospedagem WordPress da MCO2.

Hospedando o plugin Genesis Simple Hooks em uma empresa de hospedagem de confiança

A MCO2, além de instalar o WordPress na versão mais atualizada para seus clientes, oferece o WP SafePress, um sistema exclusivo que protege e aumenta a performance do seu site conjuntamente.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização automática de imagens, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.

Instead of the sometimes tedious and unfamiliar process of creating functions in your theme files, this plugin gives you an attractive, easy to use interface for modifying your Genesis theme via the hook system. The plugin accepts HTML, Shortcodes, and PHP and gives you access to all 50+ hooks built into the Genesis theme, and a few built-in WordPress hooks as well.

Code Snippets

The most common request from Genesis users is how to properly modify their footer, post-info, and post-meta text. Here are some code snippets that might prove helpful in doing this:

Modifying the post-info

<div class="post-info">
    <span class="time"><?php the_time('F j, Y'); ?></span> <span class="author">by <?php the_author_posts_link(); ?></span> <span class="post-comments"><a href="#"><?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?></a></span> <a class="post-edit-link"><?php edit_post_link('(Edit)', '', ''); ?></a>
</div>

Modifying the post-meta

<div class="post-meta">
    <span class="categories">Filed under: <?php the_category(', ') ?></span>  <span class="tags">Tagged with <?php the_tags('') ?></span>
</div>

Modifying the Footer

<div class="gototop">
    <p><a href="#" rel="nofollow">Return to top of page</a></p>
</div>
<div class="creds">
    <p>Copyright &copy; <?php echo date('Y'); ?> &middot; <a href="#" title="Genesis Theme Framework">Genesis Theme Framework</a> by <a href="#">StudioPress</a> &middot; <a href="#" title="WordPress">WordPress</a> &middot; <?php wp_loginout(); ?></p>
</div>

Note: You must have the Execute PHP on this hook option selected in order to use template tags