Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #632002

    Hey

    I started to use a Child theme and I can not import the modified Magazine.php into it.
    I use a Magazine blog in the front page whith some excerpt, which worked great in the MAIN Theme, but not in the CHILD theme.

    I tried all the options I found, for example:
    Functions.php
    require_once( ‘config-templatebuilder/avia-shortcodes/magazine.php’ );
    (from https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list-with-read-more-link/)

    but this one crashing my site (something about Problem in Line 10 in Magazne.php)

    Can someone help me?

    #632915
    #634279

    Ok, did that, made the “shortcodes” Folder, copied magazine.php, still no change.
    Still no excerpt in the front page.
    Any thoughts?

    #634282

    Hi,

    Did you add this to child theme functions.php:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }

    Best regards,
    Josue

    #634283

    of course. followed the info in the link, added the code, added the folder, copied the modified- magazine.php (which worked in main theme), but still nothing.

    #634285

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #634287

    There.
    Thanks for your help, I hope you find a way, this excerpt thing was always a problem after an update

    #634291

    Hi,

    Need this access too.

    Best regards,
    Josue

    #634297

    info

    #634302

    No, it’s an .htaccess prompt. You probably don’t see it because it’s already logged in your computer, check in another browser or in incognito mode.

    #634315

    I checked everything, incognito etc, used different computers, no problem on my side, but I am not sure what your problem is.

    #634376

    Yeah i can connect via FTP but i won’t be able to see / test anything because the site has w3c caching enabled.

    #634383

    disabled W3 Total Cache

    #634388

    Ok, check it.

    #634402

    perfect, thx, what did you do?
    Only magazine and functions php?

    #634403

    Hi,

    Only magazine.php, line 367:

    $excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_magazine_excerpt_length' , 60) , apply_filters( 'avf_magazine_excerpt_delimiter' , " "), "…", true, '');					
    

    Best regards,
    Josue

    #634414

    thx again!
    Do I have to look out when there is a theme update or the files in the child folder wont change after update?

    #634444

    It won’t change, but perhaps if -in a future patch- something is added to magazine.php you may want to merge it to get the latest features.

    The modification is simply done by that line in 367, nothing else.

    Best regards,
    Josue

    #751755

    I have the same problem in my child theme. Line 367 in magazine.php is part of a function. Could it be that the line number has changed in the meantime? Where exactly do I have to put the modification so that I am able to see an excerpt in a child theme?

    #754181

    Hi!

    Please follow the instructions in the following thread.

    // https://kriesi.at/support/topic/magazin-element-visible-extract/#post-523479

    Best regards,
    Ismael

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.