• Resolved gajekpl

    (@gajekpl)


    Hi! Can I ask for help, where I can edit Latest Post title in header?
    I was searching few hours I am noob at php.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Hey again Bojan

    I’ve removed now the css.. but I can’t see the changes…! This white band come aigain.. https://www.leadernews.net

    Thanks for helb
    Best regards

    But it is perfekt when I come other the parent theme..The problem is only on the childtheme

    Hey again naphtaly,

    I’ve checked the link you provided above and I see that everything is working now, see screenshot https://screencast.com/t/ehlaOKAwYZ.

    Did you manage to fix the issue or am I missing something?

    Best regards,
    Bojan

    hey Bojan..
    It is like this when I activate the parent theme. But when I activate the childtheme it is like this: https://www.leadernews.net

    Hey again naphtaly,

    So there is definitely an issue with the functionality of the child theme, did you create this child theme on your own or there is already build child theme that you can download?

    Please advise,
    Bojan

    Hey Bonjan… The Child theme I use it is an already build child theme I’ve downloaded in wordpress..!

    Hey again gstain,

    Thanks for additional info. After searching for similar issues with the Profit Mag child theme it appears that his is a known issues.

    I’ve found the following response from the theme developer on how to fix this:

    https://www.ads-software.com/support/topic/latest-post-problem-with-js-in-child-theme?replies=4#post-7071939

    Please try it out and let me know ??

    Best regards,
    Bojan

    function.php child theme:
    <?php
    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
    function chld_thm_cfg_parent_css() {
    wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
    }
    endif;
    add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );

    /**
    * Enqueues child theme stylesheet, loading first the parent theme stylesheet.
    */
    function themify_custom_enqueue_child_theme_styles() {
    wp_enqueue_style( ‘parent-theme-css’, get_template_directory_uri() . ‘/style.css’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘themify_custom_enqueue_child_theme_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’)
    );
    }
    // END ENQUEUE PARENT ACTION
    ?>

    customchildtheme.php

    jQuery(document).ready(function($) {

    // Latest post

    $(‘#js-latest’).ticker({

    speed: 0.15,

    controls: false,

    titleText: ‘FLASH INFO’,

    });

    // Sidebar Gallery Nivo LightBox

    $(‘.nivolight’).nivoLightbox();

    $(‘.header-wrapper #site-navigation .menu-main-menu-container’).addClass(‘clearfix’);

    $(window).on(‘load’,function(){

    $(“.scroll-content”).mCustomScrollbar({

    axis:”x”,

    mouseWheelPixels: “235”,

    horizontalScroll: true,

    autoDraggerLength: true,

    //autoHideScrollbar: true,

    advanced:{

    autoScrollOnFocus: false,

    updateOnContentResize: true,

    updateOnBrowserResize: true

    }

    });

    });

    $(‘.fullPreview’).click(function(){

    var fullImage = $(this).data(‘imageFull’);

    $(‘#previewHolder’).attr(‘src’, fullImage);

    });

    //for scrollbar

    $(‘.header-wrapper .menu’).slicknav({

    allowParentLinks :true,

    duration: 1000,

    prependTo: ‘.header-wrapper .responsive-slick-menu’

    });

    });

    Hier all that I make in function.php und in customchildtheme.js
    Could you tell me Bojan, what is wrong, because this white band never moove.
    Thank you for help

    Hey there naphtaly,

    If the above doesn’t fix the issue you’re having with the child theme I’d suggest opening a new thread and hopefully theme developers can share some light on this issue.

    Editing latest posts works, this seems to be the issue with the child theme.

    Best regards,
    Bojan

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Latest post – editing title’ is closed to new replies.