Jump to content
Sign in to follow this  
nkodiahender

Featured image problem with Jigoshop (platformpro)

Recommended Posts

nkodiahender

Hi guys, sorry for my english, So I'm having a problem using jigoshop plugin, the featured image is not showing, actually there is no button for me to upload a photo. I have seen on the forum that I'm not the only one having this problem ( here: http://www.pagelines.com/forum/discussion/13910/featured-image-is-not-available-when-addingediting-jigoshop-products./p1 ). I've tried the solution brought by 'rangelone' but still it doesn't work. the solution was to add this code in the functions.php in platformbase: // ADD THUMBNAIL SUPPORT FOR PAGES ----------// if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); } // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED function insertThumbnailRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content; } return $content; } add_filter('the_excerpt_rss', 'insertThumbnailRSS'); add_filter('the_content_feed', 'insertThumbnailRSS'); ______________________END OF THE CODE________________________________ So I added it and here's what I have now on my functions.php : <?php // Setup -- Probably want to keep this stuff... // Set up action for section registration... add_action('pagelines_register_sections', 'base_sections'); /** * Hello and welcome to Base! First, lets load the PageLines core so we have access to the functions */ require_once( dirname(__FILE__) . '/setup.php' ); // For advanced customization tips & code see advanced file. //--> require_once(STYLESHEETPATH . "/advanced.php"); // ==================================================== // = YOUR FUNCTIONS - Where you should add your code = // ==================================================== // ADDING CUSTOM SECTIONS ------- // // Register a Drag&Drop HTML Section for the admin. // A pullquote section was created here for demonstration purposes // Sections should be named: section.[your section name].php and placed in the sections folder. function base_sections(){ /* Your custom sections get registered in here... PageLines Register Section Arguments: 1. Section Class Name, 2. Directory name (or filename if in root of 'sections' folder), 3. Init Filename (if different from directory name), 4. Section setup and variable array */ pagelines_register_section('BasePullQuote', 'pullquote', null, array('child' => true) ); pagelines_register_section('BaseSidebar','sb_base', null, array('child' => true) ); } // ABOUT HOOKS --------// // Hooks are a way to easily add custom functions and content to the Platform theme. There are hooks placed strategically throughout the theme // so that you insert code and content with ease. // HOOKS EXAMPLE --------// // Below is an example of how you would add a social media icon to the icons in header (branding section) // We have placed a hook at the end of the icon set specifically add new icons without modifying code or having to worry about your edits // getting thrown out during the upgrade process. The way to use hooks goes a little like this: // add_action('hook_name','function name'); // ---> uncomment to load //add_action('pagelines_branding_icons_end', 'add_icons_to_branding'); // function name function add_icons_to_branding(){ // This hook adds a stumbleupon icon to the header of your theme. The class referenced in the link can be seen in the style.css // and is the image from the CSS is placed in the images folder ?> <?php } // end function // ABOUT FILTERS ----------// // Filters allow data modification on-the-fly. Which means you can change something after it was read and compiled from the database, // but before it is shown to your visitor. Or, you can modify something a visitor sent to your database, before it is actually written there. // FILTERS EXAMPLE ---------// // The following filter will add the font Ubuntu into the font array $thefoundry. // This makes the font available to the framework and the user via the admin panel. add_filter ( 'pagelines_foundry', 'my_google_font' ); function my_google_font( $thefoundry ) { $myfont = array( 'Ubuntu' => array( 'name' => 'Ubuntu', 'family' => '"Ubuntu", arial, serif', 'web_safe' => true, 'google' => true, 'monospace' => false ) ); return array_merge( $thefoundry, $myfont ); } // ADDING NEW TEMPLATES --------// // Want another page template for drag and drop? Easy :) // 1. Add File called page.[page-id].php to Base // 2. Add /* Template Name: Your Page Name */ and Call to 'setup_pagelines_template();' to that file (see page.base.php) // 3. Add 'pagelines_add_page('[page-id]', '[Page Name]');' to this functions.php file // Add Base Page if ( function_exists( 'pagelines_add_page' ) ) pagelines_add_page('base', 'Custom Page'); // OVERRIDE SECTION TEMPLATES --------// // Want more customization control over any of the core section templates in PlatformPro? Just override the template file. // To do that, just add a file called template.[section-id].php to this child theme and it will override the section templates // for the section with that ID. For example, template.boxes.php will override the boxes templates. // Once overridden you can copy the code from that section, paste it there and edit to your heart's content. // ADD THUMBNAIL SUPPORT FOR PAGES ??”??”??”-// if ( function_exists( ???add_theme_support??™ ) ) { add_theme_support( ???post-thumbnails??™ ); } // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED function insertThumbnailRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = ??? . get_the_post_thumbnail( $post->ID, ???thumbnail??™ ) . ??? . $content; } return $content; } add_filter(???the_excerpt_rss??™, ???insertThumbnailRSS??™); add_filter(???the_content_feed??™, ???insertThumbnailRSS??™); ______________________END OF THE CODE________________________________ To make it more clear, this is a screenshot of what it is supposed to look like, with the button: 2s84wuq.jpg2s84wuq.jpg And this is what I have, no button: vgik2d.jpgvgik2d.jpg I'm really not getting it so thank you guys your help, any response would be highly appreciated!

Share this post


Link to post
Share on other sites
nkodiahender
yes indeed i have disabled all plugins. There's one person who he had apparently found the solution for the theme "whitehouse" (Rangelone) on this topic. : http://www.pagelines.com/forum/discussion/13910/featured-image-is-not-available-when-addingediting-jigoshop-products./p1 //----------------------------------------------------// ( rangelone ) the solution was to add this code in the functions.php in platformbase: // ADD THUMBNAIL SUPPORT FOR PAGES // if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); } // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED function insertThumbnailRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content; } return $content; } add_filter('the_excerpt_rss', 'insertThumbnailRSS'); add_filter('the_content_feed', 'insertThumbnailRSS'); //----------------------------------------------------// Solution I added in my functions.php in platefromebase, which is in the first issue. However, this solutions was for someone who has used the theme whitehouse. I currently use version PlatformPro 1.5.0 PlatformBase 1.4.1.

Share this post


Link to post
Share on other sites
nkodiahender
Yes i deactivating others plugins For what is the same problem, I found a part of the solution. It should be added in functions.php in the base platform code: add_theme_support ('post-thumbnails', array ('product', 'post')); As against that solves the problem only partially. If you have another idea. Thank you for sharing :/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×