Home › Forums › Support › GeneratePress + Mantle Update (Save some code) › Reply To: GeneratePress + Mantle Update (Save some code)
July 28, 2016 at 1:47 pm
#213705
Jamyz
Done thanks for the help.
I finale create 2 plugin.
For helping people
one is
<?php
/*
Plugin Name: Pertes - Functions.php - Entete Logo
Plugin URI:
Description:
Version: 1
Author: Jamyz
Author URI: http://www.jamyz.com
License: FREE
License URI:
*/
/*DEBUT CODE JAMYZ*/
add_action('generate_inside_navigation','generate_navigation_logo');
function generate_navigation_logo()
{
?>
<div class="site-logo">
<a href="http://www.perthes-en-gatinais.fr/"><img src="http://www.perthes-en-gatinais.fr/wp-content/uploads/2014/06/cropped-cropped-65px-Blason_ville_fr_Perthes_Seine-et-Marne.svg_31.png" alt="" /></a>
</div>
<?php
}
function enable_custom_mime_types( $mimes ) {
$mimes['swf'] = 'application/x-shockwave-flash';
return $mimes;
}
add_filter( 'upload_mimes', 'enable_custom_mime_types' );
/*FIN CODE JAMYZ*/
the other
<?php
/*
Plugin Name: Pertes - Icones Social
Plugin URI:
Description:
Version: 1
Author: Jamyz
Author URI: http://www.jamyz.com
License: FREE
License URI:
*/
/*DEBUT CODE JAMYZ*/
add_action('generate_after_header_content','generate_after_header_content');
function generate_after_header_content()
{ ?>
<div class="social">
<?php echo do_shortcode('[aps-social id="1"]')?>
</div>
<div class="image">
<a href="http://www.perthes-en-gatinais.fr/nous-contacter/" >
<img id="image" src='http://www.perthes-en-gatinais.fr/wp-content/uploads/2015/07/e-mail-enveloppe-icone-5361-40.png'
onmouseover="this.src='http://www.perthes-en-gatinais.fr/wp-content/uploads/2015/07/nous-contacter-e1436188546745.png';"
onmouseout="this.src='http://www.perthes-en-gatinais.fr/wp-content/uploads/2015/07/e-mail-enveloppe-icone-5361-40.png';"/>
</a>
</div>
<?php }
/*FIN CODE JAMYZ*/
Finally i updated Mantle & GeneratePress, all of before is save but when i go in plugins i can’t update GP Premium the arrows doesn’t stop???
What is the problem ?
Thanks you !!!!!