Skip to content

Instantly share code, notes, and snippets.

View ahmedeshaan's full-sized avatar

Ahmed Eshaan ahmedeshaan

View GitHub Profile
ul#menu-course-menu > .current_page_item > a {
color: #FCD137;
}
#menu-course-menu > .current_page_ancestor > a {
color: #FCD137;
}
ul#menu-course-menu > li ul li.current_page_item > a {
color: #FCD137;
.flex-has-center .flex-col:not(.flex-center){
flex:1;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {min-height: 500px !important; margin-bottom:10px; }
ul.products li.product a.button {position: absolute !important; bottom: 500px; }
.box-text {
min-height: 145px;
position: relative;
}
.add-to-cart-button {
position: absolute;
top: 90px;
@ahmedeshaan
ahmedeshaan / command.md
Created September 29, 2016 05:50
ERROR 1698 (28000): Access denied for user 'root'@'localhost'

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

  • sudo su

  • mysql -u root or mysqld_safe --skip-grant-tables

  • SELECT User,Host FROM mysql.user;

  • DROP USER 'root'@'localhost';

.tooltip {
position: absolute;
z-index: 1030;
display: block;
font-size: 11px;
line-height: 1.4;
opacity: 0;
filter: alpha(opacity=0);
visibility: visible;
<?php
if ( ! empty( $title ) ) {
echo $args['before_title'] . apply_filters( 'widget_title', $title ). $args['after_title'];
}?>
<?php $id = uniqid("slider") ?>
<div class="row">
<div id="<?php echo $id; ?>" class="col-md-12">
<div class="tx_ticker">
<?php $query = new WP_Query( array('cat'=> $cat, 'posts_per_page'=>$posts_count) ); ?>
<?php while($query->have_posts()): $query->the_post(); ?>
# If the Joomla site is installed within a folder such as at
# e.g. www.example.com/joomla/ the robots.txt file MUST be
# moved to the site root at e.g. www.example.com/robots.txt
# AND the joomla folder name MUST be prefixed to the disallowed
# path, e.g. the Disallow rule for the /administrator/ folder
# MUST be changed to read Disallow: /joomla/administrator/
#
# For more information about the robots.txt standard, see:
# http://www.robotstxt.org/orig.html
#
# If the Joomla site is installed within a folder such as at
# e.g. www.example.com/joomla/ the robots.txt file MUST be
# moved to the site root at e.g. www.example.com/robots.txt
# AND the joomla folder name MUST be prefixed to the disallowed
# path, e.g. the Disallow rule for the /administrator/ folder
# MUST be changed to read Disallow: /joomla/administrator/
#
# For more information about the robots.txt standard, see:
# http://www.robotstxt.org/orig.html
#
(function() {
tinymce.PluginManager.add('tx_tinymce_button', function( editor, url ) {
editor.addButton( 'tx_tinymce_button', {
title: 'My test button',
icon: 'icon dashicons-wordpress-alt',
onclick: function() {
editor.windowManager.open( {
title: 'Insert Your Shortcode',
body: [
<?php
/*
Plugin Name: Starter Team
Plugin URI: http://www.themeum.com
Description: Starter Team Post Type Plugins
Author: Themeum
Version: 1.0.0
Author URI: http://www.themeum.com
*/