Skip to content

Instantly share code, notes, and snippets.

Victor M. Font Jr. vfontjr

View GitHub Profile
View action-detail-page-return-link-source.html
View cpt_page_template.php
<?php
/**
* Template Name: Lead Like Jesus Devotionals
*
* Selectable from a dropdown menu on the edit page screen.
*/
?>
<?php get_header(); ?>
View add_filter.php
<?php
add_filter( 'frm_include_credit_card', '__return_true' );
View robots_mod.php
<?php
//* Append directives to the virtual robots.txt
//* Siteground adds crawl-delay: 10 to robots.txt. Don't use physical robots.txt on SiteGround
add_filter( 'robots_txt', 'robots_mod', 10, 2 );
function robots_mod( $output, $public ) {
$output .= "Sitemap: https://victorfont.com/sitemap_index.xml";
return $output;
}
View background-attachment.css
/* apply to any element with 'background-attachment: fixed' kicks in GPU acceleration */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
transform: translate3d(0,0,0);
-webkit-transform: translate3d(0,0,0);
}
View xdebug.ini
zend_extension=xdebug.so
[xdebug]
xdebug.remote_enable=on
xdebug.remote_connect_back = 1
xdebug.idekey="PHPSTORM"
xdebug.remote_port=9000
xdebug.var_display_max_data = 2048
xdebug.var_display_max_depth = 128
View css1.css
.entry-content ol,
.entry-content ul {
margin-left: 40px;
margin-left: 4rem;
}
View htaccess1.txt
# Stop spam/brute force attack logins and comments
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .(wp-comments-post|wp-login).php*
RewriteCond %{HTTP_REFERER} !.*example.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]
View htaccess_config.txt
suPHP_ConfigPath /home/public_html
order allow,deny
deny from all
You can’t perform that action at this time.