Reply To: GeneratePress + Mantle Update (Save some code)

Home Forums Support GeneratePress + Mantle Update (Save some code) Reply To: GeneratePress + Mantle Update (Save some code)

#213646
Jamyz

Thanks i installed Simple CSS.
I add

/* DEBUT CODE JAMYZ */
.main-navigation .site-logo {
  display: none;
  float: left;
  line-height: 20px; /* Adjust this to your menu item height */
  margin-right: 1.5em;
  margin-top: 5px;
}
.stickynav .main-navigation .site-logo {
    display: block;
}

.inside-header {
  position: relative;
}

.social {
      position: absolute;
      left: 10px;
      bottom: 5px;
}

div.image {
      position: absolute;
      right: 10px;
      bottom: 0px;
}

/* DEBUT CODE TAILLES POLICES ONGLET*/
.main-navigation a {
font-size: 17px!important;
}
/* FIN CODE TAILLES POLICES ONGLET */
.sidebar .widget-title {
text-align: center;
}
/* FIN CODE JAMYZ */

I installed Pluginception & Code Snippets.
But i don’t understand how many i use both.
I create a plugin named entente-perthes.php with this inside

add_action( 'generate_after_header_content', 'EntetePerthes' );
function your_function_name()
{ ?>
<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 }

Now what i do with Code Snippet ???? I need a example to understand. if that possible. Thanks….