Skip to content

Instantly share code, notes, and snippets.

@agusmu
Created June 20, 2013 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agusmu/5819481 to your computer and use it in GitHub Desktop.
Save agusmu/5819481 to your computer and use it in GitHub Desktop.
PrimaShop - Adding Additional Button On Call To Action Area
<?php
/**
* The template for displaying header call to action.
*
* WARNING: This file is part of the PrimaShop parent theme.
* Please do all modifications in the form of a child theme.
*
* @category PrimaShop
* @package Templates
* @author PrimaThemes
* @link http://www.primathemes.com
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<header id="header-action" class="group">
<div class="margin group">
<?php echo do_shortcode( shortcode_unautop( wpautop( prima_get_setting( 'calltoaction_text' ) ) ) ); ?>
<a class="header-action-button header-action-button-2" href="https://www.facebook.com/pages/Primathemes/225072067634020">
Like Our Facebook!
</a>
<a class="header-action-button" href="<?php prima_setting( 'calltoaction_url' ); ?>">
<?php prima_setting( 'calltoaction_button' ); ?>
</a>
</div>
</header>
#header-action a.header-action-button-2, #header-action a.header-action-button-2:visited {
background: #B1E0EE;
color: #000000;
margin-left: 20px;
}
#header-action a.header-action-button-2:hover {
background: #2BA6CB;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment