Skip to content

Instantly share code, notes, and snippets.

View hakikz's full-sized avatar
💭
Github stars make me happy than $ and inspire me to do more for web community :)

Hakik Zaman hakikz

💭
Github stars make me happy than $ and inspire me to do more for web community :)
View GitHub Profile
@hakikz
hakikz / onClick_To_Top.js
Last active July 29, 2021 16:53
Smooth Scroll
$('#return-to-top').click(function() { // When arrow is clicked
$('body,html').animate({
scrollTop : 0 // Scroll to top of body
}, 500);
});
@hakikz
hakikz / Remove_P_tag_From_Contact7_plugin.txt
Last active December 23, 2018 06:53
Remove P tag from WordPress Contact 7 form plugin
## First go to wp-config.php and just paste the line below
define( 'WPCF7_AUTOP', false ); //Sometimes this block of code will not work on live server then please try the second
## If the first one is not working then please go to your theme folder and paste the line in functions.php
add_filter('wpcf7_autop_or_not', '__return_false');
@hakikz
hakikz / dashboard_menu_rename.php
Last active July 23, 2019 11:11
WordPress Tweaks
<?php
function rename_header_to_logo( $translated, $original, $domain ) {
$strings = array(
'Electro' => 'Ecommerce Theme', // 'The Existing Name' => 'Desired Name'
'Custom Header' => 'Custom Ecommerce Theme'
);
if ( isset( $strings[$original] ) && is_admin() ) {
$translations = &get_translations_for_domain( $domain );