Skip to content

Instantly share code, notes, and snippets.

@ethicka
ethicka / facetwp_pager_html.php
Last active May 20, 2021 11:01 — forked from MWDelaney/facetwp.php
FacetWP Bootstrap 4 Pagination (facetwp_pager_html)
<?php
/**
* FacetWP Pager Bootstrap 4 Pagination
* @source https://gist.github.com/MWDelaney/ce9e523b3f1bdf57b3180c9b24b73170
* @source https://fellowtuts.com/bootstrap/wordpress-pagination-bootstrap-4-style/
*/
add_filter('facetwp_pager_html', function ($output, $params) {
$range = 2; // +/- pages from the current page
$showitems = ($range * 2) + 1;
$page = $params['page'];
@ethicka
ethicka / localhost-ssl.md
Last active April 12, 2024 12:26 — forked from jonathantneal/README.md
Local virtualhost SSL websites on Mac OS Sierra

Local virtualhost SSL websites on Mac OS Sierra

These instructions will guide you through the process of setting up a wildcard SSL for your local virtualhosts for offline development. Most importantly, this configuration will give you the happy, green lock in Chrome.

These instructions have only been tested on Mac OS Sierra using the pre-installed Apache and PHP versions. These instructions also assume you have virtualhosts set up locally already.


Configuring SSL