Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: Feature Slider Excerpt and Images #97784
    Fabio
    Participant

    Thank you, Mahesh, that worked.

    I am looking forward to the updated theme.

    Best,

    Fabio

    in reply to: Feature Slider Excerpt and Images #97773
    Fabio
    Participant

    What is the custom CSS code to hide the excerpt in Feature Slider?

    Like I mentioned before, I added the code you said that should work, but it didn’t. The html is still showing in the excerpt for Feature Post Slider. It seems to me like this should be an issue that you guys should fix, since it is your theme that is not working correctly.

    in reply to: Feature Slider Excerpt and Images #97660
    Fabio
    Participant

    Ok, I got it back by ftp-ing the theme directly into the wp-content folders in my server… wont mess with those .php files again…

    in reply to: Feature Slider Excerpt and Images #97658
    Fabio
    Participant

    I can’t even access my WordPress Bench now… even worse.

    in reply to: Feature Slider Excerpt and Images #97657
    Fabio
    Participant

    I REALLY NEED HELP NOW… I tried editing the functions.php file on the Original Fabulous Fluid Pro theme file and it disappeared. Now I can’t even access Editor tools in WordPress. Terrible day.

    in reply to: Feature Slider Excerpt and Images #97656
    Fabio
    Participant

    Also, I would like to know if there is a way to disable the excerpt on the Feature Post Slider but keep it in the Feature Content (and Feature Grid Content) option?

    in reply to: Feature Slider Excerpt and Images #97653
    Fabio
    Participant

    I WENT AHEAD AND USED THE PLUGIN YOU RECOMMENDED FOR BUILDING CHILD THEMES. I MADE ONE FOR FABULOUS FLUID PRO.

    //THE FOLLOWING IS MY STYLE.CSS FILE//

    /*
    Theme Name: FabulousFluid-Pro-Child
    Description:
    Author: admin
    Template: fabulous-fluid-pro

    (optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
    */

    //THE FOLLOWING IS MY FUNCTIONS.PHP FILE AFTER I INPUT YOUR CODE//

    <?php
    //
    // Recommended way to include parent theme styles.
    // (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
    //
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array(‘parent-style’)
    );
    }
    //
    // Your code goes below
    //
    function fabulous_fluid_page_slider() {
    $quantity = apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slide_number’ );

    $excerpt_more_text = apply_filters( ‘fabulous_fluid_get_option’, ‘excerpt_more_text’ );

    global $post;

    $output = ”;
    $number_of_page = 0; // for number of pages
    $page_list = array(); // list of valid page ids

    //Get number of valid pages
    for( $i = 1; $i <= $quantity; $i++ ){
    if( apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slider_page_’ . $i ) && apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slider_page_’ . $i ) > 0 ){
    $number_of_page++;

    $page_list = array_merge( $page_list, array( apply_filters( ‘fabulous_fluid_get_option’, ‘featured_slider_page_’ . $i ) ) );
    }

    }

    if ( !empty( $page_list ) && $number_of_page > 0 ) {
    $get_featured_posts = new WP_Query( array(
    ‘posts_per_page’ => $quantity,
    ‘post_type’ => ‘page’,
    ‘post__in’ => $page_list,
    ‘orderby’ => ‘post__in’
    ));

    $i=0;

    while ( $get_featured_posts->have_posts() ) {
    $get_featured_posts->the_post();

    $i++;

    $title_attribute = the_title_attribute( array( ‘echo’ => false ) );

    $classes = ‘page page-‘ . $post->ID . ‘ slider-box’;

    if ( $i == 1 ) {
    $classes .= ‘ first’;
    }

    //Default value if there is no featurd image or first image
    $image_url = get_template_directory_uri() . ‘/images/no-featured-image-1680×720.jpg’;
    $image = ‘‘;

    if ( has_post_thumbnail() ) {
    $image = get_the_post_thumbnail( $post->ID, ‘fabulous-fluid-slider’, array( ‘title’ => $title_attribute, ‘alt’ => $title_attribute, ‘class’ => ‘wp-post-image’ ) );

    $image_url = get_the_post_thumbnail_url( $post->ID, ‘fabulous-fluid-slider’ );
    }
    else {
    //Get the first image in page, returns false if there is no image
    $first_image = fabulous_fluid_get_first_image( $post->ID, ‘fabulous-fluid-slider’, array( ‘title’ => $title_attribute, ‘alt’ => $title_attribute ) );

    //Set value of image as first image if there is an image present in the page
    if ( ” != $first_image ) {
    $image = $first_image;

    $image_url = fabulous_fluid_get_first_image( $post->ID, ‘fabulous-fluid-slider’, ”, true );
    }
    }

    $tag = “a”;

    $content = get_the_excerpt();
    $content = preg_replace(“/<\\/?” . $tag . “(.|\\s)*?>/”, null,$content);

    $output .= ‘
    <span class=\’cover\’></span>’ . the_title( ‘<h2>’,'</h2>’, false ) . ‘</div>” title=”‘. $title_attribute . ‘” href=”‘ . esc_url( get_permalink() ) . ‘”>’;

    $output .= $image;

    $output .= ‘
    <div class=”caption”>
    <span class=”vcenter”>
    ‘ . the_title( ‘<span class=”entry-title”>’,'</span>’, false ) . ‘

    <span class=”entry-content”>’ . wp_kses_post( $content ) . ‘</span>

    <span class=”more”>’ . esc_html( $excerpt_more_text ) . ‘</span>
    </span><!– .vcenter –>
    </div><!– .caption –>
    <!– .slider-box –>’;
    } //endwhile

    wp_reset_query();
    }
    return $output;
    }

    // I ALSO ADDED THE EXTRA CSS TO THE CUSTOM CSS BOX UNDER THEME OPTIONS //

    #feature-slider .entry-content span.readmore {
    display: none;
    }

    //AND THE HTML KEEPS APPEARING IN THE FEATURE POST SLIDER.//

    in reply to: Feature Slider Excerpt and Images #97645
    Fabio
    Participant

    I tried everything and it didn’t work. Then I downloaded the one-click child theme plugin and it reset all of my modifications.

    This is a pain in the ass.

    I thought it was going to be simple by buying a theme.

    I am frustrated.

    in reply to: Feature Slider Excerpt and Images #97567
    Fabio
    Participant

    Hi Mahesh,

    Thanks for your response.

    I went to the thread you recommended to fix the Feature Post Slider issue, but I failed to see a sample child theme for the Fabulous Fluid Pro Theme (which is the one I am using). Would a different file work? Please advice.

    in reply to: Feature Slider Excerpt and Images #97534
    Fabio
    Participant

    Ok, I figured out the issue with the images. They need to be the same width.

    However, I am still getting html on my excerpt. The html is basically the link info for the “Read More…” tag/button. Can’t figure out why it is showing, however.

Viewing 10 posts - 1 through 10 (of 10 total)