This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Prototype for adding a Font Awesome icon to the secondary Avada header. | |
* | |
* 1) Telephone | |
* 2) Email | |
* | |
* 1) For the telephone, add the HTML/CSS directly into the Theme Options > Header > Phone Number For Contact Info | |
* E.g. Call Us Today! Call Us Today! <i class="fontawesome-icon fa-mug-hot fas circle-yes" style="border-color:#3e3e3e;background-color:#3e3e3e;font-size:15.84px;line-height:31.68px;height:31.68px;width:31.68px;margin-right:9px;color:#ffffff;"></i> 1.555.555.555 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
gulp.task('serve', function () { | |
// Standard call for dynamic sites. | |
browserSync.init({ | |
proxy: "avada.local" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* || General Styling */ | |
body { | |
background-color: black; | |
color: white; | |
font-size: 18px; | |
margin: 2% 0; | |
} | |
h1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Refactored for mobile-first 21 January 2022 */ | |
/** | |
* CSS Only Solution for Adding a Second Logo | |
* | |
* Limitation: You can't add a link to the logo | |
*/ | |
.fusion-logo::after { | |
content: url(https://marklchaves.files.wordpress.com/2021/03/cme-eye-logo-black-52.png) !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Use an Avada Hook to Add Text Under the Logo | |
*/ | |
function my_logo_text() { | |
echo "<h3>Some Text Under the Logo</h3>"; | |
} | |
add_filter( 'avada_logo_append', 'my_logo_text' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Override Custom Logo for a Certain Page | |
*/ | |
function my_logo_link($my_new_link) { | |
if ( is_page(2) ) { | |
return $my_new_link = array( 'class' => 'fusion-logo-link', 'href' => "https://caughtmyeye.dev" ); | |
} else { | |
return array( 'class' => 'fusion-logo-link', 'href' => ( $custom_link = Avada()->settings->get( 'logo_custom_link' ) ) ? esc_url( $custom_link ) : esc_url( home_url( '/' ) ), ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Disable the highlight bar over the hamburger menu by default. */ | |
#menu-item-1374 > a { | |
border-top-width: 3px; | |
border-top-style: none; | |
} | |
/** Turn on the hamburger highlight bar when on a page in the hamburger menu.*/ | |
/** | |
* These two pages are in the hamburger menu. So, turn back on the highlight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Make a Coffee Cup be the read more symbol. */ | |
.fusion-read-more::after { | |
content: '\002615' !important; /* Hot Beverage */ | |
right: -20px !important; | |
} | |
/** | |
* How to add CSS to Wordpress. | |
* https://medium.com/@marklchaves/adding-custom-css-to-your-wordpress-website-how-to-guide-a50b474af36d | |
*/ |