Skip to content

Instantly share code, notes, and snippets.

View cpaul007's full-sized avatar
🏠
Working from home

Chinmoy Paul cpaul007

🏠
Working from home
View GitHub Profile
@cpaul007
cpaul007 / category_archive_in_gallery_format.php
Last active August 29, 2015 14:24
Category archive page in gallery format
@cpaul007
cpaul007 / simple_social_icons_css.php
Last active October 1, 2015 06:13
Showing different color style
<?php //* do not include this opening PHP tag
/**
* Add custom css in <head> tag
*
* @author Genesis Developer
* @license GPL-2.0+
* @link http://genesisdeveloper.me/
* @copyright Copyright ( c ) 2015, Genesis Developer.
*/
@cpaul007
cpaul007 / taxonomy_title_description.php
Last active October 13, 2021 11:04
Display taxonomy title and desciption
<?php //* Don't include this PHP open tag
/**
* Filename: taxonomy_title_description.php
*
* @author Chinmoy Paul
* @link http://genesisdeveloper.me
* @copyright Copyright (c) 2015 Genesis Developer.
*/
//* Add this code in your functions.php file
@cpaul007
cpaul007 / gfpc_checkerboard_functions.php
Last active November 27, 2017 02:55
Creating checkerboard layout effect with featured posts on Atmosphere Pro Home page. Genesis Featured Posts Combo plugin is using for it.
<?php
/**
* Creating checkerbord effect using Genesis Featured Posts Combo Plugin
*
* @author Chinmoy Paul
* @copyright Copyright (c) 2016, Genesis Developer
* @license GPL-2.0+
* @link http://genesisdeveloper.me/creating-checkerboard-effect-featured-posts-atmosphere-pro-home-page/
*/
@cpaul007
cpaul007 / gd_intro_text_output.php
Created May 19, 2016 03:38
Displaying category / tags / taxonomy intro text on 1st page only
<?php
/**
* Displaying category / tags / taxonomy intro text on 1st page only
*
* @author Chinmoy Paul
* @copyright Copyright (c) 2016, Genesis Developer
* @license GPL-2.0+
* @link http://genesisdeveloper.me
*/
@cpaul007
cpaul007 / entry_meta_above_title.php
Created July 29, 2016 02:40
Move entry meta above the entry title
<?php
/**
* Moving the entry meta above the entry title
*
* @author Chinmoy Paul
* @link http://genesisdeveloper.me
* @copyright Copyright (c) 2015 - 2016 Genesis Developer
* @license GPL - 2.0+
*/
@cpaul007
cpaul007 / functions.php
Created September 15, 2016 12:59
Creating full width home page on Elegance Theme
<?php
//* Do not add PHP opening tag. Copy the code below this line
add_action( 'genesis_header', 'elegance_header_wrapper_open', 4 );
function elegance_header_wrapper_open() {
if( !is_front_page() )
return;
echo '<div class="site-header-container"><div class="wrap">' . "\n";
}
@cpaul007
cpaul007 / category_post_image.php
Last active February 15, 2017 06:09
Replacing the featured image with any other internal image of a post (only for category page)
<?php //* Remove this line
add_filter( 'genesis_get_image', 'gd_category_post_image', 10, 6 );
/**
* Replacing the featured image with any other internal image of post
* if there have more than one image and not set as featured image
*
* @author Chinmoy Paul
* @copyright Copyright (c) 2017, Genesis Developer
* @license GPL 3.0+
@cpaul007
cpaul007 / ff-reset-button.php
Created May 5, 2020 06:37
Add the reset button into the Fluent Forms
<?php //* do not inlcude this line
add_filter( 'fluenform_rendering_field_html_button', 'paulc_add_reset_button', 99, 3 );
function paulc_add_reset_button( $html, $data, $form ) {
//* You will replace the form ID 2 with your form ID
if( $form->id == 2 ) {
$reset_btn = '<button class="reset-button ff-btn ff-btn-md" type="reset">Reset</button>' . "\n";
$html = str_replace( '</div>', $reset_btn . '</div>', $html );
}
@cpaul007
cpaul007 / ff-gdpr-checkbox-align.css
Created May 7, 2020 09:36
Fix alignment of GDPR checkbox
.ff_t_c,
.ff_gdpr_field {
vertical-align: top!important;
}