Skip to content

Instantly share code, notes, and snippets.

View marklchaves's full-sized avatar
🏄‍♂️

mark l chaves marklchaves

🏄‍♂️
View GitHub Profile
@marklchaves
marklchaves / avada-equal-height-plain-columns.css
Created October 16, 2019 23:02
CSS Only Solution to Equal Height Columns in Avada by ThemeFusion (two plain columns with buttons)
/* For Avada by ThemeFusion */
/* The equal height problem is only an issue for larger devices. */
@media screen and (min-width: 1024px) {
/* Make the column content equal height. */
.your-classname-here .fusion-column-wrapper {
height: 440px !important; /* Adjust for your content. */
}
/* These CSS selectors depend on what Avada buttons you use. Note the button-2 class--change as needed. */
.fusion-button.button-flat.button-small.button-default.button-2.fusion-button-default-span.fusion-button-default-type {
@marklchaves
marklchaves / minimal-mistakes-responsive-snippet-page__hero.html
Created November 8, 2019 15:30
First Attempt to Support Art Direction Mobile First Images on Minimal Mistakes Jekyll Theme
<!-- Process the Hero Image -->
{% if page.header.overlay_image_mob %}
{% if page.header.overlay_image_mob
contains "://" %}
{% capture overlay_img_mob_path %}{{ page.header.overlay_image }}{% endcapture %}
{% elsif page.header.overlay_image_mob %}
{% capture overlay_img_mob_path %}{{ page.header.overlay_image_mob | relative_url }}{% endcapture %}
{% endif %}
{% else %}
@marklchaves
marklchaves / caughtmyeye-dev-portfolio-masonry.js
Created November 8, 2019 15:39
Modified On Load JavaScript Code from kfrankc's Customisations of the Minimal Mistakes Jekyll Theme
// Refactored to support on load and resize calls. ~mlc
function loadMasonry() {
// console.log("Inside portfolio-masonry.js");
var grid = $('.grid__item');
var container = document.querySelector('.archive');
// Get reference to loading screen
var loading_screen = document.getElementById('loading');
imagesLoaded(container, function() {
grid.fadeIn();
@marklchaves
marklchaves / darkened-background-image.md
Created November 26, 2019 10:57
Darkening a Background Image CSS Only
@marklchaves
marklchaves / javascript-exercise-changing-html-on-the-fly.css
Last active January 1, 2020 07:28
JavaScript Exercise: Changing HTML on the Fly
/* || General Styling */
body {
background-color: black;
color: white;
font-size: 18px;
margin: 2% 0;
}
h1 {
@marklchaves
marklchaves / font-size-previewer-ii-comparison-version.markdown
Last active January 19, 2020 14:55
Font Size Previewer II (Comparison Version)
@marklchaves
marklchaves / themefusion-community-forum-reply-making-fusion-slider-responsive.md
Last active March 7, 2020 22:44
Response to, "CSS for making Fusion Slider responsive"

Reply to this thread that is not letting me re-post my edited response.

https://theme-fusion.com/forums/topic/css-for-making-fusion-slider-responsive/

Hi @kabrosidigital and @esd112,

Can you provide some visual examples? Responsive, has a few meanings out there (it's an overused term). By default Avada is responsive. Meaning it will scale content appropriately (responsively) to different device screens and resolutions.

You can see this clearly by viewing all Avada demos on multiple devices (alluding to Michael's example).

@marklchaves
marklchaves / avada-forum-author-info-align.md
Created March 26, 2020 23:14
Reply to Avada Form "Author Information Alignment"

Hi,

This is a common anti-pattern.

I recommend the following:

  1. Copy your row that has the two columns.
  2. In the new copy, label it something like "Mobile View" in the FB back-end editor.
  3. In this new row, put all elements into their own 1/1 column. That means that image needs to be on its own.
  4. Delete your original two 1/2 cols. They should be empty now, right?
@marklchaves
marklchaves / generatepress-child-functions.php
Last active April 5, 2020 06:39
Using GeneratePress Built-in Hooks for Customising how Individual Blog Posts are Layed Out on a Blog Index or Homepage
<?php
/**
* GeneratePress child theme functions and definitions.
*
* Add your custom PHP in this file.
* Only edit this file if you have direct access to it on your server (to fix errors if they happen).
*/
function generatepress_child_enqueue_scripts() {
if ( is_rtl() ) {
@marklchaves
marklchaves / different-logos-different-pages.md
Last active April 19, 2020 00:16
Reply to multiple logos for different pages on the Avada community forum

Reply to multiple logos for different pages on the Avada community forum

Original thread.

Hello @paulstartups,

Thanks for another A2A! I thought the new Avada Theme Builder would support this! Unfortunately, I didn't find it anywhere in the Avada docs.

So, here's how I've done it in the past. It still works for Avada 6.2.2.