This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\ShopifyGraphQLQuery; | |
use Illuminate\Support\Facades\App; | |
use Log; | |
class ShopifyGraphQLProductAddMedia extends Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\ShopifyGraphQLQuery; | |
use Illuminate\Support\Facades\App; | |
use Log; | |
class ShopifyGraphQLProductAddMedia extends Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Sonetel Chat-App - Add this snippet your theme functions.php file **/ | |
add_action('wp_footer', 'wp_hook_javascript_footer_sonetel'); | |
function wp_hook_javascript_footer_sonetel() { | |
?> | |
<!-- REPLACE <script> with code from "Install using Javascript snippet" --> | |
<script async id="slcLiveChat" src="https://widget.sonetel.com/SonetelWidget.min.js" data-account-id="#"></script> | |
<?php | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enqueue child theme css | |
// Put this snippet in your functions.php file | |
// CSS file location in example: wp-content/themes/[your-child-theme-dir]/css/child-style.css | |
// use filemtime() to clear version cache with each file update | |
add_action( 'wp_enqueue_scripts', 'custom_theme_stylesheets',99); | |
function custom_theme_stylesheets() { | |
wp_enqueue_style( 'custom-child-style', get_template_directory_uri() .'-child/css/child-style.css', array(), $ver=filemtime( get_stylesheet_directory() .'/css/child-style.css'), 'all' ); | |
} |