Last active
September 11, 2023 21:24
-
-
Save Edwardtonnn/4a996a4b4855e9a851a59fbb5e6e299d to your computer and use it in GitHub Desktop.
Holy Grail of All Genesis
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 | |
//Only Code Below This Line | |
//_________________________________________ | |
//* Customize the entire footer | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
add_action( 'genesis_footer', 'custom_footer' ); | |
function custom_footer() { | |
?> | |
<p>© Copyright 2012 <a href="http://mydomain.com/">My Domain</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> · <a href="http://mydomain.com/wp-admin">@Edwardtonnn</a></p> | |
<?php | |
} | |
//* Remove the edit link | |
add_filter ( 'genesis_edit_post_link' , '__return_false' ); | |
/** Adding custom Favicon */ | |
add_filter( 'genesis_pre_load_favicon', 'custom_favicon' ); | |
function custom_favicon( $favicon_url ) { | |
return 'http://myblog.com/image-name.png/'; | |
} | |
// Adds Custom Header with Conditional Logic | |
add_action ('genesis_after_header' , 'custom_hero_header', 20); | |
function custom_hero_header(){ | |
// conditional logic for header background image | |
if(is_front_page()) | |
echo ' | |
<div class="hero-container"> | |
<div class="hero-content-wrapper"> | |
<div class="hero-content"> | |
<h1 class="text-lead text-light">One Focus.</h1> | |
<h1 class="text-lead text-reg">One Practice.</h1> | |
<h1 class="text-lead text-semi-bold">One Passion.</h1> | |
<h1 class="text-lead text-bold">Immigration Law.</h1> | |
</div> | |
</div> | |
</div>'; | |
// Family Based Immigrant Visas | |
elseif(is_page(83)) | |
echo '<div class="page-header-container"> | |
<div class="page-content-wrapper"> | |
<a class="btn-call" href="tel:562-432-6227">Give Us A Call</a> | |
</div> | |
</div>'; | |
} | |
// Enable shortcodes in widgets | |
add_filter( 'widget_text', 'shortcode_unautop' ); | |
add_filter('widget_text', 'do_shortcode'); | |
// Add Google Fonts Links | |
//Add Font Awesome | |
add_action( 'genesis_meta', 'custom_meta' ); | |
function custom_meta() { | |
?> | |
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,900" rel="stylesheet"> | |
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> | |
<?php | |
} | |
// Adds Logo in Site Title Area | |
add_action('genesis_site_title','custom_logo'); | |
function custom_logo(){ | |
?> | |
<a href="http://localhost/dev-aml/"> | |
<img src="http://localhost/dev-aml/wp-content/uploads/2018/07/Logo-Final.png" alt="Angela Nova McGill Logo" height="80px" width="400"> | |
</a> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment