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
[ | |
{ | |
"name": "Versio", | |
"website": "https://versio.nl", | |
"portal": "https://mijn.versio.nl", | |
"hostcontrol": "directadmin", | |
"status": { | |
"value": 1, | |
"link": "https://www.versio.eu/status", | |
"rss": "https://www.versio.eu/rss/maintenance", |
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 | |
/* | |
* in default loops using hooks | |
* https://developer.wordpress.org/reference/functions/_future_post_hook/ | |
*/ | |
function publish_futuredate_post( $post_data ) { | |
if ( $post_data['post_status'] == 'future' && $post_data['post_type'] == 'post' )#Here I am checking post_type='post' , you may use different post type and if you want it for all post type then remove "&& $post_data['post_type'] == 'post'" | |
{ | |
$post_data['post_status'] = 'publish'; | |
} |
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
/* Divi portfolio projects by category - gallery thumb image title text overlay */ | |
/* 1. Add 'ds-hover-gallery' class to Divi portfolio gallery in page or post */ | |
/* 2. Adjust gallery overlay zoom-icon-color and hover-overlay-color to 0 alpha */ | |
/* 3. Add js and css code in Divi > Integration tab > head code */ | |
/* portfolio (project) galleries */ | |
.ds-hover-gallery .et_pb_portfolio_item { | |
position: relative; | |
} | |
.ds-hover-gallery .et_pb_module_header { |
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
<script> | |
function setImagesOrient(){ | |
var pics = $('body').find("img"); | |
for (i = 0; i < pics.length; i++) { | |
pics[i].addEventListener("load", function() { | |
if (this.naturalHeight > this.naturalWidth) { | |
this.classList.add("portrait") | |
} else { | |
this.classList.add("landscape") |
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 // wp theme woocommerce.php content functions dump | |
/* | |
$all_products = get_posts( array( | |
'post_type' => 'product', | |
'numberposts' => -1, | |
'post_status' => 'publish', | |
'fields' => 'ids', | |
) ); |
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
/* iframe responsive display */ | |
.frame-container { | |
background-color: #b5bdc8; | |
padding: 12px 8px 32px; | |
font-size: 25px; | |
text-align: center; | |
transition: all 0.2s; | |
margin: 0 auto; | |
width: 90%; | |
-webkit-border-radius: 15px; |
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
/* Divi Vertical Tabs 1 | |
* Original code from https://diviextended.com/how-to-create-divi-vertical-tabs/ | |
*/ | |
.vertical-tabs1 { | |
border: none; | |
} | |
.vertical-tabs1 ul.et_pb_tabs_controls { | |
float: left; |
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 | |
/* Common used php (functions.php) for Wordpress Divi / Woocommerce Theme */ | |
// Woo cart & button adjustments | |
// To change add to cart text on single product page | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); | |
function woocommerce_custom_single_add_to_cart_text() { | |
return __( 'Add to bag', 'woocommerce' ); | |
} |
NewerOlder