Digital experiences for all disciplines
Forum Replies Created
-
-
Here is the only modification using the child theme.
functions.php
<?php /* * * Joyn Functions - Child Theme * ------------------------------------------------ * These functions will override the parent theme * functions. We have provided some examples below. * * */ /* PORTFOLIO ITEM DETAILS ================================================== */ if ( ! function_exists( 'sf_portfolio_item_details' ) ) { function sf_portfolio_item_details() { global $post; $item_sidebar_content = sf_get_post_meta( $post->ID, 'sf_item_sidebar_content', true ); $client = sf_get_post_meta( $post->ID, 'sf_portfolio_client', true ); $item_link = sf_get_post_meta( $post->ID, 'sf_portfolio_external_link', true ); $item_categories = get_the_term_list( $post->ID, 'portfolio-category', '<li>', '</li><li>', '</li>' ); $fw_media_display = sf_get_post_meta( $post->ID, 'sf_fw_media_display', true ); $image = wp_get_attachment_url( get_post_thumbnail_id() ); $pb_active = sf_get_post_meta( $post->ID, '_spb_js_status', true ); $link_icon = apply_filters( 'sf_link_icon', '<i class="ss-link"></i>' ); ?> <?php if ($fw_media_display == "split") { ?> <section class="item-details"> <?php } else if ($pb_active == "true") { ?> <section class="item-details container"> <?php } else { ?> <section class="item-details col-sm-3"> <?php } ?> <?php if ( $item_sidebar_content != "" ) { ?> <div class="sidebar-content"> <?php echo do_shortcode( $item_sidebar_content ); ?> </div> <?php } ?> <?php if ( $client != "" ) { ?> <div class="client"><span><?php _e( "Client:", "swiftframework" ); ?></span><?php echo esc_attr($client); ?></div> <?php } ?> <time class="date updated" itemprop="datePublished" datetime="<?php echo get_the_date( 'Y-m-d' ); ?>"> <span><?php _e( "Date:", "swiftframework" ); ?></span><?php echo get_the_date(); ?></time> <?php if ( $item_link != "" ) { ?> <a class="item-link" href="<?php echo esc_url($item_link); ?>" target="_blank"><?php echo $link_icon; ?><?php _e( "View Press", "swiftframework" ); ?></a> <?php } ?> <?php if ( $item_categories != "" ) { ?> <ul class="portfolio-categories"> <?php echo $item_categories; ?> </ul> <?php } ?> <?php if ( sf_theme_opts_name() == "sf_atelier_options" ) { ?> <?php echo do_shortcode('[sf_social_share]'); ?> <?php } else { ?> <div class="article-share" data-buttontext="<?php _e( "Share this", "swiftframework" ); ?>" data-image="<?php echo esc_url($image); ?>"></div> <?php } ?> </section> <?php } add_action( 'sf_after_portfolio_content', 'sf_portfolio_item_details', 0 ); } /* ADDITIONAL THUMBNAIL SIZES ================================================== */ add_image_size( 'thumb-image-onecol', 1800, 9999, true); add_image_size( 'full-width-image-gallery', 1800, 9999, true); /* LOAD THEME LANGUAGE ================================================== */ /* * You can uncomment the line below to include your own translations * into your child theme, simply create a "language" folder and add your po/mo files */ // load_theme_textdomain('swiftframework', get_stylesheet_directory_uri().'/language'); /* REMOVE PAGE BUILDER ASSETS ================================================== */ /* * You can uncomment the line below to remove selected assets from the page builder */ // function spb_remove_assets( $pb_assets ) { // unset($pb_assets['parallax']); // return $pb_assets; // } // add_filter( 'spb_assets_filter', 'spb_remove_assets' ); /* ADD/EDIT PAGE BUILDER TEMPLATES ================================================== */ function custom_prebuilt_templates($prebuilt_templates) { /* * You can uncomment the lines below to add custom templates */ // $prebuilt_templates["custom"] = array( // 'id' => "custom", // 'name' => 'Custom', // 'code' => 'your-code-here' // ); /* * You can uncomment the lines below to remove default templates */ // unset($prebuilt_templates['home-1']); // unset($prebuilt_templates['home-2']); // return templates array return $prebuilt_templates; } //add_filter( 'spb_prebuilt_templates', 'custom_prebuilt_templates' ); function custom_post_thumb_image($thumb_img_url) { if ($thumb_img_url == "") { global $post; ob_start(); ob_end_clean(); $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); if (!empty($matches) && isset($matches[1][0])) { $thumb_img_url = $matches[1][0]; } } return $thumb_img_url; } add_filter( 'sf_post_thumb_image_url', 'custom_post_thumb_image' ); ?>
This reply has been marked as private.Hi,
Our portfolio category pages are not working again? Also, not sure if we have any updates needed. We are using a child theme but don’t get notifications about updates.
http://ajc.flywheelsites.com/portfolio-category/commercial-office/
@Mohammad, what did you do?
Thank you
I went ahead and just created pages for these instead of using the category-pages.
I guess I could just make pages for each individual category instead of relying on the category-pages to work…??
Same problem with the child theme deactivated and all plugins (except swift) deactivated.
This reply has been marked as private.Thanks, I deactivated the theme. Deactivated the framework plugin, deleted it and installed the 1.70 plugin, after which I was prompted to update the plugin to 1.76. Reactivated the theme and all is well now.
I don’t have the option to deactivate and delete this plugin from the admin?
Attachments:
You must be logged in to view attached files.I have not been prompted to update swift framework? What is the current version available?
January 11, 2016 at 4:28 pm in reply to: apply swift button styles to contact form 7 submit button #239539Thank you
Thank you
Sorry about that. Image added. Is it possible to control to size as well?
This reply has been marked as private. -