Testing email from Spark

By | Uncategorized | No Comments

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean facilisis ac mauris et placerat. Pellentesque eget interdum enim, id venenatis massa. Morbi ut nisl ac odio lacinia molestie. Cras efficitur at nisl vitae viverra. Curabitur lectus leo, consequat et magna et, vehicula dictum ipsum. Morbi vitae felis a lacus fermentum tristique. Phasellus et pellentesque eros. Fusce convallis egestas nisi.

Cras ultrices quis nibh a sodales. Quisque sed lectus viverra, mollis purus et, pretium elit. Pellentesque luctus neque massa, in ultricies nibh ultrices vitae. Maecenas cursus, tortor eu bibendum auctor, nulla velit tristique neque, ut condimentum tortor ante sed nunc. Suspendisse et blandit purus, ut pellentesque urna. Morbi odio magna, faucibus sit amet neque nec, dapibus tristique est. Maecenas finibus finibus eleifend. Ut fermentum venenatis sapien et ullamcorper. Vestibulum sit amet euismod eros. Ut eu egestas nibh. Sed et laoreet velit. Pellentesque vel sollicitudin ex, quis vehicula arcu. Nullam eget dapibus elit. In blandit euismod purus, non rhoncus leo condimentum ut. Vivamus nec gravida lorem. Integer suscipit est eros, quis vestibulum urna faucibus semper.

Nulla et scelerisque felis. In aliquam pharetra lobortis. Etiam vel nibh eu dolor malesuada maximus. Donec sem felis, sagittis interdum est in, venenatis tincidunt eros. Maecenas vel risus felis. Pellentesque et erat fermentum urna accumsan ullamcorper et imperdiet urna. Vivamus varius quis dolor eget posuere. Cras a justo tortor. Suspendisse ornare tortor at varius lobortis. Suspendisse imperdiet felis augue, sit amet auctor ligula feugiat consequat. Sed feugiat orci ac tellus ultricies lacinia. Nullam maximus laoreet imperdiet. Proin eu elit facilisis, malesuada mi id, consequat metus. Aenean tincidunt eros sit amet dolor tempor, at eleifend elit posuere. Suspendisse at elit purus. In nec sem id magna dapibus imperdiet.

Aliquam aliquet et augue ut ullamcorper. Suspendisse gravida libero id aliquam congue. Vestibulum lobortis arcu magna, eget pharetra odio tristique sed. Nam in porttitor dui. Nam at orci facilisis, efficitur leo id, molestie nibh. Nulla molestie non mi vitae pulvinar. Integer tempor blandit est, ut auctor ligula aliquam sed.

In volutpat tellus in ex mollis, quis vehicula dui condimentum. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus egestas lorem quis enim iaculis, in varius nulla porttitor. Sed vel nibh posuere, aliquet risus ac, placerat sem. Mauris viverra, purus eget molestie viverra, magna diam ultrices urna, at ornare justo libero at nibh. Pellentesque accumsan tempor eleifend. Suspendisse tincidunt erat massa, finibus sollicitudin nisi fringilla rhoncus. Fusce tincidunt sit amet massa ac suscipit. Vivamus a dignissim massa. Proin sollicitudin nisi id nunc rutrum, nec lobortis justo cursus. Sed justo sapien, rutrum et eros id, accumsan viverra nisl. Nulla facilisis est interdum libero porttitor facilisis at eu ligula. Pellentesque vitae magna ac nisl tempus pharetra sit amet sit amet mauris. Aliquam rutrum sem justo, non hendrerit dui semper ac.  

WordPress .htaccess fixes for Page Speed

By | Wordpress | No Comments

I recently finished a job and i am trying to get a score of 100 on Google Page Speed. So far I have fixed a lot of stuff and here are the .htaccess changes that focus on caching and gzip minification.

Header unset Pragma
FileETag None
Header unset ETag

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"

<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

# Specify a Vary: Accept-Encoding header
<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding

Dante theme x custom post tags

By | Wordpress | No Comments

Dante theme gives you the ability to add tags to your posts but… surprisingly it won’t show up with you try to see the posts associated with that custom post type.

I looked online and found this thread and there’s a simple code that you have to add to your functions.php:

function wpse28145_add_custom_types( $query ) {
    if( is_tag() && $query->is_main_query() ) {

        // this gets all post types:
        $post_types = get_post_types();

        // alternately, you can add just specific post types using this line instead of the above:
        // $post_types = array( 'post', 'your_custom_type' );

        $query->set( 'post_type', $post_types );
add_filter( 'pre_get_posts', 'wpse28145_add_custom_types' );

Dante Theme x TinyMCE issue

By | Wordpress | No Comments

I’ve been working on this project for a coulpe of weeks using the Dante theme and suddenly the page builder stopped working. I tried to activate it inside the post editing page and all I got was a message like Loading…, I checked the console and there was a TinyMCE warning and when i changed i received an error that it couldn’t save.

I then went to Google to try to find people having the same problem and all I found was a thread on their support but I couldn’t access because there was a problem with my client’s purchase code so we lost a couple of days trying to get access. Once we were in I found a few other threads and no solution from them. There was only one guy that found out the problem and I am sharing here because it would be easier to find and access.

You probably get this error because, like me, you entered text mode and then tried to activate page builder. You simply have to go to Visual Mode and then activate page builder!

Text Mode > Visual Mode > Page Builder

Not sure if this was related to a plugin, I saw some people saying it was ACF, but either way… Only activate Page Builder when in Visual Mode.