How to Save Abandoned Carts in WooCommerce

According to Built With WooCommerce is the most popular ecommerce solution used by shop owners. And the reasons are quite clear it’s free, flexible, simple to use, and has great documentation. It’s no wonder so many people use it! Though the plugin is incredibly full-featured, it can’t help in terms of shopping cart abandonment. In …
The post How to Save Abandoned Carts in WooCommerce appeared first on Torque.
Read more

What’s the difference between ./dogs.html and /dogs.html?

They are both URL paths. They have different names, though.

<!-- root-relative -->
<a href="./dogs.html">Dogs</a>

<!– absolute –>
<a href=”/dogs.html”>Dogs</a>

There are also fully-qualified URLs that would be like:

<!-- fully qualified -->
<a href="https://website.com/dogs.html">Dogs</a>

Fully-qualified URL’s are pretty obvious in what they do — that link takes you to that exact place. So, let’s look those first two examples again.

Say you have a directory structure like this on your site:

public/
├── index.html
└── animals/
├── cats.html

The post What’s the difference between ./dogs.html and /dogs.html? appeared first on CSS-Tricks.

Read more

15+ Best VSCO Lightroom Presets

VSCO is a popular photography app for both Android and iOS, known for stunning filters and effects. Today we’re featuring a selection of VSCO Lightroom presets, inspired by the VSCO app, to help you achieve similar results with greater power and flexibility. If you have a copy of Lightroom, you probably want to have more […]
Read more

Updating a CSS Variable with JavaScript

Here’s a CSS variable (formally called a “CSS custom property“):

:root {
--mouse-x: 0px;
--mouse-y: 0px;
}

Perhaps you use them to set a position:

.mover {
left: var(--mouse-x);
top: var(--mouse-y);
}

To update those values from JavaScript, you’d:

let root = document.documentElement;

root.addEventListener(“mousemove”, e => {
root.style.setProperty(‘–mouse-x’, e.clientX + “px”);
root.style.setProperty(‘–mouse-y’, e.clientY + “px”);
});

That’s all.

See the Pen Set CSS Variable with JavaScript by Chris Coyier (@chriscoyier) on CodePen.…

The post Updating a CSS Variable with JavaScript appeared first on CSS-Tricks.

Read more

WordCamp Wilmington Cancelled Due to Hurricane Florence

Hurricane Florence is forecast to make landfall as a major hurricane near Wilmington, North Carolina bringing potentially catastrophic flooding and strong winds to the region. Hurricane Florence Forecast Track From the National Hurricane Center Because of the hurricane, WordCamp Wilmington which was scheduled to take place September 22nd and 23rd (more…)
Read more

Why State Management, Like Redux, May Solve Your Problems

It’s only recently occurred to me that I’ve been doing WordPress, PHP, and JavaScript development for a while. In the last 5-6 years, I’ve learned some best practices that are no longer the best. For example, state management — the practice of putting all of the dynamic values of your application — a user inputs …
The post Why State Management, Like Redux, May Solve Your Problems appeared first on Torque.
Read more

Doc Pop News Drop: An Interview With The Co-Release Lead of WordPress 4.9.9

Doc’s WordPress News Drop is a weekly report on the most pressing WordPress news. When the news drops, I will pick it up and deliver it right to you. In this week’s News Drop we talk with Anthony Burchell, one of the release leads for WordPress 4.9.9, about what to expect from this upcoming release …
The post Doc Pop News Drop: An Interview With The Co-Release Lead of WordPress 4.9.9 appeared first on Torque.
Read more

How to Integrate Artificial Intelligence in the Sales Process

Less than a decade ago, the idea of artificial intelligence would inevitably have us thinking about the catastrophic future where machines ruled all mankind. Fast forward a few years, and artificial intelligence is all the rage, albeit with much less dramatic results. However, that doesn’t mean it’s not present in our lives. One area where …
The post How to Integrate Artificial Intelligence in the Sales Process appeared first on Torque.
Read more

Introducing Trashy.css

It began, as many things do, with a silly conversation. In this case, I was talking with our Front End Technology Competency Director (aka “boss man”) Mundi Morgado.

It went something like this…

Mundi Morgado I want you to build a visual screen reader.”

Nathan Smith Who what now?

Mundi Morgado I want a CSS library that allows you to see the structure of a document. It shouldn’t use class so that you’re forced to focus on semantics. Also, …

The post Introducing Trashy.css appeared first on CSS-Tricks.

Read more