Skip to content

Instantly share code, notes, and snippets.

View asufian97's full-sized avatar
🎯
Focusing

Abu Sufian asufian97

🎯
Focusing
  • front-end/wordpress developer
  • Sylhet,Bangladesh
View GitHub Profile
.appearance-right-previw .d-flexCstm .form-switchCstm input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
}
@media (max-width:767px){
.appearance-right-previw .tooltipCstm .toolltiptextCstm {
width: 100% !important;
@asufian97
asufian97 / Add Color Swatches using hex values.md
Created October 14, 2021 04:58 — forked from carolineschnapp/Add Color Swatches using hex values.md
Add Color swatches to #Brooklyn theme. Use hexadecimal values or images.

What we want

We want to go from this:

Alt text

... to that:

Alt text

@asufian97
asufian97 / function.php
Last active January 5, 2019 04:55 — forked from braginteractive/extras.php
WordPress Filter to change the Custom Logo class
/**
* Changes the class on the custom logo in the header.php
*/
function helpwp_custom_logo_output( $html ) {
$html = str_replace('custom-logo-link', 'navbar-brand', $html );
return $html;
}
add_filter('get_custom_logo', 'helpwp_custom_logo_output', 10);
@asufian97
asufian97 / shortcode.php
Created October 31, 2018 14:27 — forked from hasinhayder/shortcode.php
Learn With Hasin Hayder - Shortcode Examples
<?php
function philosophy_button( $attributes ) {
$default = array(
'type'=>'primary',
'title'=>__("Button",'philosophy'),
'url'=>'',
);
$button_attributes = shortcode_atts($default,$attributes);
@asufian97
asufian97 / isotop with masonry active
Created October 29, 2018 12:40
include inside jquery
//// ISOTOPE TRIGGER
var $grid = $('.work-content').isotope({
itemSelector: '.work-item',
stagger: 30
});
$(window).on('load', function(){ $grid.isotope('layout') });
$('.filter-work').on( 'click', '.button', function() {
var filterValue = $(this).attr('data-filter');
$grid.isotope({ filter: filterValue });
});
download twentytwenty plugin for before after
https://github.com/zurb/twentytwenty
@asufian97
asufian97 / index.php
Created July 3, 2018 15:23
run loop with cmb2 metaboxes,
<!--front end html loop-->
<ul class="social">
<?php
$entries = get_post_meta( get_the_ID(), '_yourprefix_main_boxes', true );
foreach ( (array) $entries as $key => $entry ) {
$icon_name = $link_irr = '';
if ( isset( $entry['_yourprefix_font_icon'] ) ) {
@asufian97
asufian97 / style.css
Created April 3, 2018 02:53 — forked from jbutko/style.css
CSS, Safari: Target only Safari browser
@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Safari and Chrome */
.flex-direction-nav-featured a{
margin-top: 4%;
}
/* Safari only override */
::i-block-chrome,.flex-direction-nav-featured a{
margin-top: 5%;
}
@asufian97
asufian97 / main.js
Created February 28, 2018 01:49
use js for themeforest
//[Master Javascript]
//Project: Delicious Restaurant - Onepage Html Responsive Template
//Version: 1.1
//Last change: 18/10/2016 [fixed bug]
//Primary use: Delicious Restaurant - Onepage Html Responsive Template
//theme script here
@asufian97
asufian97 / fonts.css
Created February 28, 2018 01:31
include fonts for website
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 300;
src: url('../fonts/poppins-v1-latin-300.eot'); /* IE9 Compat Modes */
src: local('Poppins Light'), local('Poppins-Light'),
url('../fonts/poppins-v1-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/poppins-v1-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/poppins-v1-latin-300.woff') format('woff'), /* Modern Browsers */
url('../fonts/Poppins-Light.ttf') format('truetype'), /* Safari, Android, iOS */