This file contains hidden or 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
<style> | |
.contact-form-name, | |
.contact-form-email, | |
.contact-form-email-message { | |
max-width: 100%; | |
} | |
input[type=text], select, textarea { | |
width: 100%; | |
padding: 12px; | |
border: 1px solid #ccc; |
This file contains hidden or 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
[text your-name placeholder "Your name"] | |
[email* your-email placeholder "eMail Address"] | |
[textarea your-message placeholder "Your Message"] | |
[submit "Send it Now"] | |
<style> | |
input[type=text], input[type=email], textarea { | |
background: none; |
This file contains hidden or 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
/** | |
* Remove Post Title from Breadcrumb. | |
* | |
* Takes a substring of crumb, starting at 0, with a length of up to the last occurrence of the | |
* (start of the) separator string. | |
*/ | |
function be_remove_title_from_single_crumb( $crumb, $args ) { | |
return substr( $crumb, 0, strrpos( $crumb, $args['sep'] ) ); | |
} | |
add_filter( 'genesis_single_crumb', 'be_remove_title_from_single_crumb', 10, 2 ); |
This file contains hidden or 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 | |
/** | |
* Genesis Framework. | |
* | |
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. | |
* Please do all modifications in the form of a child theme. | |
* | |
* @package Genesis\Templates | |
* @author The mushfiq.co | |
* @license GPL-2.0+ |
This file contains hidden or 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
/** paginated page indexation fixing - paste it to function.php file**/ | |
function mushfiqco_paginated_page_fix() { | |
if(is_paged()) echo '<meta name="robots" content="noindex,follow"/>';} | |
add_action('wp_head', 'mushfiqco_paginated_page_fix'); |
This file contains hidden or 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
// Meta hreflang tag example: Add this code to the <head> section of every page | |
<link rel="alternate" href="http://example.com/" | |
hreflang="en" /> | |
// Targetting uk English speaking users | |
<link rel="alternate" href="http://example.com/en-gb/" | |
hreflang="en-gb" /> | |
//targettign English speaking Australian users | |
<link rel="alternate" href="http://example.com/en-au/" | |
hreflang="en-au" /> |
This file contains hidden or 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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^example.co.uk [NC] | |
RewriteRule ^(.*)$ https://example.co.uk/$1 [L,R=301] |
This file contains hidden or 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
# HTTPS to HTTP Redirect - put the snippet top of .htaccess file | |
RewriteEngine On | |
RewriteCond %{HTTPS} on | |
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |