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
* Template Name: Lead Like Jesus Devotionals
* Selectable from a dropdown menu on the edit page screen.
<?php get_header(); ?>
View add_filter.php
add_filter( 'frm_include_credit_card', '__return_true' );
View robots_mod.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:";
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
xdebug.remote_connect_back = 1
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_URI} .(wp-comments-post|wp-login).php*
RewriteCond %{HTTP_REFERER} !.** [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.