The following code goes into the functions.php file:
// Create A Somple Product Catalog width Wordpress. ali.md/pcwp
// Step One: Create the custom post typeThe following code goes into the functions.php file:
// Create A Somple Product Catalog width Wordpress. ali.md/pcwp
// Step One: Create the custom post type| /** | |
| * jQuery iLightBox - Revolutionary Lightbox Plugin | |
| * http://www.ilightbox.net/ | |
| * | |
| * @version: 2.2.3 - June 03, 2017 | |
| * | |
| * @author: Hemn Chawroka | |
| * http://www.iprodev.com/ | |
| * | |
| */ |
| <?php | |
| /* Override (modify) the Avada header layouts in a child theme by establishing a local version. */ | |
| /* Avada has 6 header layouts selectable via Avada > Theme Options > Header > Header Content. These map to files at | |
| "/wp-content/themes/Avada/templates". You can use your browser's devtools to look in the header for something like | |
| '<div class="fusion-header-v1 ... ">' which will help identify what's being used, if you don't already know. | |
| */ | |
| // Copy this block from "/wp-content/themes/Avada/templates/header.php". If you are not using header_1 then copy the appropriate block. | |
| if ( ! function_exists( 'avada_header_1' ) ) { |
| #!/bin/bash | |
| # Copyright 2017 Théo Chamley | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| # this software and associated documentation files (the "Software"), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, merge, | |
| # publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
| # to whom the Software is furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all copies or |
| // bootstrap carousel build with wordpress acf - simple method | |
| // with add class 'active' to first div - MUST BE! | |
| // also you must add css: | |
| // .item {display:none;} | |
| // .item.active {display:block;} | |
| // first method | |
| <ul id="carousel" class="slider carousel" data-ride="carousel" data-interval="<?php if ( get_field('slider__speed','option') ) { the_field('slider__speed','option'); } else { echo '4000'; } ?>"><!-- add sub_field to change slide time --!> | |
| <?php if ( have_rows('slider__item','option') ) : ?> <!-- take slides from Options Page > slider__item --> |
| #!/bin/bash | |
| # assign env var, if set | |
| HB="${HOMEBREW_PREFIX:=/usr/local}" | |
| find -L "${HB}/opt" -name 'INSTALL_RECEIPT.json' -maxdepth 2 -print > /tmp/homebrew-installed.txt | |
| printf '' > /tmp/homebrew-installed-w-options.txt | |
| NAME='' |
| RewriteEngine on | |
| #change dev.example.com to your domain name | |
| RewriteCond %{HTTP_HOST} ^(www.)?dev.example.com$ | |
| RewriteCond %{REQUEST_URI} !^/current/web/ | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ /current/web/$1 | |
| #change dev.example.com to your domain name | |
| RewriteCond %{HTTP_HOST} ^(www.)?dev.example.com$ | |
| RewriteRule ^(/)?$ current/web/index.php [L] |