Ask your WordPress questions! Pay money and get answers fast! (more info)

Changing the Favepersonl Gallery to Jetpack Carousel WordPress

  • SOLVED

The theme Favepersonal uses a specially designed Gallery. The goal of this question is to change that to the regular Jetpack Gallery Carousel.

This link will give you the needed push to do so as its the developer answering the same question but in short words but it should be fine for you guys. Go there and read this link and it will give you the how to.

[[LINK href="http://crowdfavorite.com/forums/topic/jetpack-1-5-carousel/"]][[/LINK]]

Here is a link to my theme files [[LINK href="https://www.dropbox.com/sh/iamar2ln9we4du9/IfHw4CrVnQ"]][[/LINK]]

What I need are the files I need to update <strong>ONLY</strong> so to successfully answer this questions I update the files you submit to me, the gallery is now changed to Jetpack Carousel and complete.


Answers (1)

2013-12-27

Bob answers:

can not find any link.
please provide it.


Jorge Ledesma comments:

Sorry let me add them here:

http://crowdfavorite.com/forums/topic/jetpack-1-5-carousel/

and the wordpress theme files here

https://www.dropbox.com/sh/iamar2ln9we4du9/IfHw4CrVnQ


Jorge Ledesma comments:

You won my previous questions, glad to have you again.


Bob comments:

okay let me check.


Bob comments:

It's done

First add activate jetpack then activate Carousel

You have to modify 3 files

1. functions.php

Go to end of file and add
remove_filter('post_gallery', 'cfct_post_gallery', 10, 2);
remove_filter('post_gallery', 'cfcp_gallery_shortcode', 1, 2);

2. content/format-gallery.php

replace [below code is right after </header> tag]

cfcp_gallery(array(
'before' => '<div class="entry-media">',
'after' => '</div>',
));

with

do_shortcode('[gallery]');
/* we are commenting it to add jetpack Carousel
cfcp_gallery(array(
'before' => '<div class="entry-media">',
'after' => '</div>',
));
*/


3. excerpt/format-gallery.php

replace

cfcp_gallery_excerpt(array(
'size' => 'thumb-img',
'before' => '<div class="entry-media clearfix">',
'after' => '</div>'
));


with

do_shortcode('[gallery]');
/*cfcp_gallery_excerpt(array(
'size' => 'thumb-img',
'before' => '<div class="entry-media clearfix">',
'after' => '</div>'
));
*/



Bob comments:

let me know if you need updated files.


Jorge Ledesma comments:

will begin modification right now, I'll be back in a second.


Jorge Ledesma comments:

Bhavesh it worked like a charm! thanks


Jorge Ledesma comments:

Just voted for you to complete the answers, thanks !!