Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Search Results for 'child theme'

Home / Forums / Search / Search Results for 'child theme'

Viewing 20 results - 1,101 through 1,120 (of 6,404 total)
  • Author
    Search Results
  • #226374

    yes! I’m using a child theme! If you give it to me, I’ll try it!

    #226372

    The only way I know to do this is to add a custom function into a child theme. Are you currently using a child theme? There is one plugin that I know of with this functionality, but it hasn’t been updated in over 3 years so I don’t recommend it.

    Hannah

    #226156

    Thanks for your help, yes there was duplicate ID. I have overridden the ID in child theme to use a session var, might be an idea to do something similar in a theme update?

    // overwrite parent theme shortcode func (from shortcodes.php)
    function fix_accordion() {
    
    $_SESSION['accordion'] = 0;
    
        if (!function_exists('skillsimpact_accordion_shortcode_function')) {
            function skillsimpact_accordion_shortcode_function($atts, $content ) {
                extract(shortcode_atts(array(
            'id' => $_SESSION['accordion']
            ), $atts));
                global $kt_pane_count, $kt_panes; 
                    $kt_pane_count = 0;
                    $kt_panes = array();
                    $return = '';
                    do_shortcode( $content );
                        if( is_array( $kt_panes ) && !empty($kt_panes)){
                            $i = 0;
                            foreach( $kt_panes as $tab ){
    
                                $_SESSION['accordion'] = $_SESSION['accordion'] + 1;
    
                                if ($i % 2 == 0) {
                                    $eo = "even";
                                } else {
                                    $eo = "odd";
                                }
                                $tabs[] = '<div class="panel panel-default panel-'.$eo.'"><div class="panel-heading"><a class="accordion-toggle '.$tab['open'].'" data-toggle="collapse" data-parent="#accordionname'.$id.'" href="#collapse'.$id.$tab['link'].'"><h5><i class="icon-minus primary-color"></i><i class="icon-plus"></i>'.$tab['title'].'</h5></a></div><div id="collapse'.$id.$tab['link'].'" class="panel-collapse collapse '.$tab['in'].'"><div class="panel-body postclass">'.$tab['content'].'</div></div></div>';
                                $i++;
                            }
                            $return = "n".'<div class="panel-group" id="accordionname'.$id.'">'.implode( "n", $tabs ).'</div>'."n";
                        }
                    return $return;
            }
        }
        remove_shortcode('accordion');
        add_shortcode('accordion', 'skillsimpact_accordion_shortcode_function');
    }
    add_action('init', 'fix_accordion', 100);
    #226123

    Hey,
    My honest suggestion is to use a plugin and not do all these edits. There are great plugins that are easy to work with that provide a better solution than hacking with private posts and overriding php.

    However, if you are stuck on the PHP path then editing through a child theme is the way to go, you are correct with the template assuming you have set the page to show full content. If you are just showing the excerpts then you would need to edit the content.php file.

    Can you send a link that shows the page output that would allow me to verify the template?

    Ben

    #226057

    You actually don’t need a child theme unless you plan to update the theme files. See here: https://kadencethemes.com/child-themes

    Hannah

    #226048

    I’m trying to create a private website. I’ve been publishing pages as “private” and that’s working OK, after I figured out how to deal with the menu system.

    Unfortunately, when I create private posts, widgets like “latest posts” stop listing any private posts. So I’m publishing posts as public and then trying to hide the content, first by hiding menu items (which I can do), and then making the content disappear on the pages themselves. I don’t mind the titles showing, but I don’t want to show images or text content.

    I am able to do this for single posts, by modifying line 69 on content-single.php in my child theme from

    the_content(); to
    if (is_user_logged_in()){the_content();}

    However, I’m trying to eliminate the entries on my blog page, which is showing full posts with readmore links. I’m using the Virtue Premium Blog Template, and thought I could do a similar action for this page by modifying line 52 of content-fullpost.php to be:

    if (is_user_logged_in()){the_content($readmore); }

    However, this doesn’t seem to do anything.

    I did a search for other files which contain “the_content” but couldn’t find anything that seemed relevant.

    Suggestions?

    #226046

    Hello
    You could you please tell me the code to enter in Ascend theme child functions.php, so it will allow html in post excerpts?
    Thank you.
    Tom

    #226032

    Hi Hannah,

    Sorry for the delay I have not been able to access a computer.

    Today I will update the theme and see if this resolves the issue. We are using Chrome Browser.

    As I haven’t created a child theme, could you recommend some documentation to guide me through setting up a child theme and updating the theme?

    Thanks

    #226023

    I get the error msg “There was a problem with your action…. when trying to any them option
    I have deactivated all plugins but did not resolve issue.

    WordPress Environment
    Home URL: [?]
    Site URL: [?]
    Redux Version: [?] 3.6.15
    Redux Data Directory Writable: [?] ✔ /home/seomave8/public_html/albox.com.au/wp-content/uploads/redux/
    WP Content URL: [?]
    WP Version: [?] 5.2
    WP Multisite: [?] –
    Permalink Structure: [?] /%postname%/
    Front Page Display: [?] page
    Front Page: [?] Home (#67909)
    Posts Page: [?] Unset
    WP Memory Limit: [?] 40 MB
    Database Table Prefix: [?] Length: 4 – Status: Acceptable
    WP Debug Mode: [?] ✔
    Language: [?] en_US
    Browser
    Browser Info: [?] Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36
    Browser: Chrome
    Version: 74.0.3729.157
    Platform: Windows
    Server Environment
    Server Info: [?] LiteSpeed
    Localhost Environment: [?] –
    PHP Version: [?] 5.6.40
    ABSPATH: [?] /home/seomave8/public_html/albox.com.au/
    PHP Memory Limit: [?] 256 MB
    PHP Post Max Size: [?] 64 MB
    PHP Time Limit: [?] 300
    PHP Max Input Vars: [?] 2000
    PHP Display Errors: [?] ✔
    SUHOSIN Installed: [?] –
    MySQL Version: [?] 5.5.5
    Max Upload Size: [?] 64 MB
    Default Timezone is UTC: [?] ✔
    fsockopen/cURL: [?] ✔
    Remote Post: [?] ✔
    Remote Get: [?] ✔
    Active Plugins (4)
    Redux Framework by Team Redux – 3.6.15
    Black Studio TinyMCE Widget by Black Studio – 2.6.8
    Page Builder by SiteOrigin by SiteOrigin – 2.10.5
    WooCommerce by Automattic – 3.6.3
    Redux Instance: Ascend
    opt_name: [?] ascend
    global_variable: [?] ascend
    dev_mode: [?] ✔
    ajax_save: [?] ✔
    page_slug: [?] kad_options
    page_permissions: [?] manage_options
    menu_type: [?] menu
    page_parent: [?] themes.php
    compiler: [?] ✔
    output: [?] ✔
    output_tag: [?] ✔
    Extensions [?] Vendor Support – 3.0.0
    Kad Slides – 3.0.0
    Kad Icons – 3.0.0
    Advanced Customizer – 0.1.0
    Theme
    Name: [?] Ascend – Premium
    Version: [?] 1.8.0
    Author URL: [?]
    Child Theme: [?] ✕

    #226004

    I am not sanitizing anything….
    I am attempting to – Adding Testimonial date to testimonial grid using child theme
    I copied lines you stated below per your instructs “81-85 you would change out the code there for your code.”
    I already changed line 85 to “echo ‘ – ‘ . wp_kses_post( $location );” to check to see if my overrides would work, it does

    image

    echo ‘ – ‘ . wp_kses_post( $location ); This line echos the location the $location column/field/item/property is what I am referring to as a field/column since it comes from the posts table.
    How do I echo the other columns/fields of the wp_kses_post?
    my wuestion was how do I find out what the column/field/item/property wp_kses_post is? so that i can use the correct date field?

    #225938

    Hey,
    That isn’t an option within the theme options. The shop page has a different setting from your category pages in the theme options but categories are all controlled with one setting.

    You can create a child theme and add your own sidebar logic. It would require you add a custom filter. Is managing a child theme something you are interested in?

    Ben

    #225846

    Before you were editing the footer.php template, did you make sure to remove that file from your child theme.

    Ben

    #225813

    I have twentynineteen, twentyseventeen, and twentysixteen themes in my wp-content folder in addtion to virtue_premium and Child_1. Are thes installed with Virtue? Can I remove them, how?

    #225806

    I am using virtue child theme. I want to add the post date to my testimonial grid. I found this from Ben:

    Where are you wanting this date? if on the single testimonial post page you can add this to the templates/content-singletestimonail.php page:

    <?php echo get_the_date(‘j M Y’); ?>

    I would like to add the date just past the name, name – date.

    Is there a way to use the child theme to override the theme file and add the date, so that I do not need to modify the base theme and will continue to function with theme updates. I am running the latest version of Virtue Premium.

    In forum: Ascend Theme

    In reply to: cart on secondary Menu

    #225721

    Thank you very much Hanna, the solution is good, My intention was to avoid the use of more plugins … and use the functions.php of my child theme… but the solutions is satisfactory

    #225668

    Hey,
    300 is the width defined by the setting of 4 columns. You can override this if you like through a child theme but it’s meant to be the base width for the base src. If your images were uploaded larger you would have srcset output and that would include a larger version of the image meant to support HD screens like phones and most desktop computers. Even if you set the width to 427px your images will be blurry on every commonly used mobile device because of the pixel density of the devices. Setting the base for 300 was a great option to get the most optimized sizes for the devices with the current responsive image markup that browsers support.

    For the theme to be able to output larger images in the srcset your images must be at least twice as large is the base setting. So for this case 600×810. I suggest uploading images at a minimum of 1600×1600 but for most cases should be more like 2200px. Your image in the link is 425x500px

    Does that help and explain?

    If you would like to use a child theme and filter the output so at least you get the full size of your image (still won’t be supporting every HD screen) then I would be happy to get you the php.

    Ben

    #225567

    Thanks Ben,

    No caching on this site (yet).
    This is in the child-theme styles.css.

    Strange – I just moved it to styles.css again and this time all works perfectly!
    Thanks for your help.

    Phil.

    #225566

    Is that the parent theme styles.css or your child theme? Should work in a child theme, did you clear your cache?

    Ben

    #225371

    Hey
    A thumbnail slider with different image ratios isn’t currently an option within the theme. What I would suggest then is using a slider plugin to create this slider that you want. Something like: https://wordpress.org/plugins/smart-slider-3/

    If you are interested and able to code something custom through a child theme you would need to edit the content-single-portfolio-project.php

    On line 41 you can change the class “kt-slider-same-image-ratio-thumb” to “kt-slider-different-image-ratio” and change out $slidewidth to null.

    Ben

    #225345

    There is not a built-in function for this, no. I have flagged this for the developer to give some direction in adding this to your child theme. He should be available soon.

    Hannah

Viewing 20 results - 1,101 through 1,120 (of 6,404 total)