Skip to content

Instantly share code, notes, and snippets.

View oguzhanoptimum7's full-sized avatar
😎

Oğuzhan ÖZÇELİK oguzhanoptimum7

😎
View GitHub Profile
530.satır -> assets > scss. > optimum7.scss
.mobile-row-3 .part-card-not-avail {
width: 90%;
height: 70px;
margin: 0 auto;
text-align: center;
font-weight: bolder;
overflow-wrap: break-word;
font-size: 11px;
@oguzhanoptimum7
oguzhanoptimum7 / remove-node-modules.md
Created January 9, 2021 20:37 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore

  1. Open up the .gitignore and add the following line to the file

**/node_modules

@oguzhanoptimum7
oguzhanoptimum7 / magicmouse.txt
Last active March 14, 2021 14:39
Macos Big Sur - Magic Mouse 2 Speed Increase
//Read Default Value
defaults read -g com.apple.mouse.scaling
//Set New Value ( 6.5 is best for me )
defaults write -g com.apple.mouse.scaling 13.5
@oguzhanoptimum7
oguzhanoptimum7 / 3lvlCategory.html
Created March 3, 2021 16:20
Bigcommerce 3 Level Category List
<ul>
{{#each categories}}
<li>
{{#if children}}
<a href="{{url}}" > ALT 1->{{name}}</a>
<ul>
{{#each children}}
<li>
{{#if children}}
<a href="{{url}}"> ALT 2-> {{name}} </a>
@oguzhanoptimum7
oguzhanoptimum7 / unlessBig.html
Created March 3, 2021 16:58
Bigcommerce Unless Usage
{{#each category.subcategories}}
{{#unless @last}}{{#unless @first}}
{{name}}
{{/unless}}{{/unless}}
{{/each}}
{{#partial "head"}}
{{{ checkout.checkout_head }}}
{{{ stylesheet '/assets/css/optimized-checkout.css' }}}
{{ getFontsCollection }}
<script type="text/javascript">
window.language = {{{langJson 'optimized_checkout'}}};
</script>
{{/partial}}
@oguzhanoptimum7
oguzhanoptimum7 / webp.php
Created March 17, 2021 14:19
Enable WebP Wordpress
//** *Enable upload for webp image files.*/
function webp_upload_mimes($existing_mimes) {
$existing_mimes['webp'] = 'image/webp';
return $existing_mimes;
}
add_filter('mime_types', 'webp_upload_mimes');
//** * Enable preview / thumbnail for webp image files.*/
function webp_is_displayable($result, $path) {
if ($result === false) {
@oguzhanoptimum7
oguzhanoptimum7 / rating.php
Created March 22, 2021 10:43
Woocommerce Comments with Rating
<?php if ( have_comments() ) : ?>
<ol class="commentlist">
<?php wp_list_comments( apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ) ); ?>
</ol>
<?php
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
echo '<nav class="woocommerce-pagination">';
paginate_comments_links(
apply_filters(
@oguzhanoptimum7
oguzhanoptimum7 / git_newrepo
Created April 13, 2021 12:44 — forked from sundarshahi/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@oguzhanoptimum7
oguzhanoptimum7 / count.liquid
Created May 18, 2021 15:18
Shopify Liquid Product Count by url(schema)
{% assign vari = url_1 | split: "collections/" %}
{{ collections[vari[1]].products.size }} Products
{% for product in collections[vari[1]].products %}
{{ product.title }}
{% endfor %}