Skip to content

Instantly share code, notes, and snippets.

View logiblue's full-sized avatar
🙂
Sup

Karanikolas Kostantinos logiblue

🙂
Sup
View GitHub Profile
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
@logiblue
logiblue / Outline Text
Last active October 11, 2020 18:32
Outline of a text and hover transition (bonus)
.outlined, .OUTLINED {
color: transparent;
-webkit-text-stroke: 1px #141414;
-ms-text-stroke: 1px #141414;
text-stroke: 1px #141414;
}
.onhover:hover {
color: #FFD810;
-webkit-text-stroke: unset;
-ms-text-stroke: unset;
@logiblue
logiblue / Annasta WooCommerce Filter - Hide Empty
Last active April 15, 2021 17:44
Annasta Woocommerce Filter - Hide Empty items
jQuery( document ).ready(function() {
jQuery(".awf-filter-count").filter(function() {
return jQuery(this).text().trim() === "0";
}).closest('label').hide(); // select the grandparent with closest
});
@logiblue
logiblue / Woof Woocomerce - Hide Empty
Last active April 25, 2024 06:17
Hide empty items from filter list using the Woof Plugin [Free Version Hack]
li > input.woof_radio_term[disabled] {display:none!important;}
li > input.woof_radio_term[disabled] + label {
display:none!important;
}
sudo chmod -R 777 /opt/lampp/htdocs/.
@logiblue
logiblue / Second Monitor Resolution FIX LINUX
Last active October 10, 2020 21:39
Samsung MONITOR RESOLUTION FIX WITH XRANDR IN LINUX
xrandr --addmode VGA-1 1440x900
xrandr --output VGA-1 --mode 1440x900 --rate 60
@logiblue
logiblue / Single Post Categories - WordPress
Last active October 10, 2020 21:43
Retrieve Categories of a single post at WordPress
$categories = get_the_category();
foreach ( $categories as $category ) {
echo '<span>' . esc_attr( $category->name ) . '</span>';
}
wrap inside php
@logiblue
logiblue / WordPress Query single article
Last active October 11, 2020 13:13
Code for querinq a single article - use with caution
<?openphp get_header(); ?>
<?openphp if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article>
<div id="single-post" class="single-post-content">
<div class="single-post-content-date"><?php the_date('F j Y'); ?></div>
<div class="single-post-content-image"><?php the_post_thumbnail('full'); ?></div>
<div class="single-post-content-cats">
@logiblue
logiblue / jQuery - AUTO CLICK
Last active October 11, 2020 13:28
Add auto click of an element on page load with jquery and add an active class
$ = jQuery.noConflict();
$(document).ready(function(){
// Blog page - Filter first item auto click on load and add class active
$(".filter-section ul li:eq(6)").addClass("active");
jQuery(function(){
$(".filter-section ul li:eq(6)").click();
});
@logiblue
logiblue / Get Page Content - WPBakery - visual composer
Last active October 11, 2020 13:30
WordPress - Get the page of a content( Best if u need to bring the layout from WPBAKERY)
<?php if (have_posts()):while(have_posts()): the_post(); the_content(); endwhile; endif; ?>