Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1424745
    #1424748

    Hey adapt,

    Thank you for the inquiry.

    You can remove the post-meta-infos container from the enfold/includes/loop-index.php file starting from line 419 to 552.

    line 421:

    if( $blog_style !== 'bloglist-compact' )
    

    line 552:

    } // display meta-infos on all layouts except bloglist-compact
    

    To override the original template file, you can create a copy of it in your child theme directory before doing the modification.

    Best regards,
    Ismael

    #1424749

    Thanks for the reply @Ismael, much appreciated. That worked!

    Just to double check – when doing edits like this, should I emulate the folder structure as well?

    For example, the child theme didn’t have an “includes” folder, so I created it.

    Is this the best way to do it?

    Also, final question. This is slightly unrelated, but also related.

    Just under the part we just edited, are the social share buttons, which I left “activated” (ie on).

    However, the header for this is “Share this entry“. I’d like to change this to “Share this article“.

    Is there a simple way (in the browser Inspect function) to figure out which file the code comes from, to set this text?

    Because if I know that, then I know the next steps. This is the same for a lot of sections that I may want to change update across the site – I can never know which file to look into to update – is it functions.php, or as above, loop-index.php etc etc.

    #1424767

    Hi,

    For example, the child theme didn’t have an “includes” folder, so I created it.

    Yes, that is the correct way to override a template file. The folder structure should be the same as the parent theme.

    However, the header for this is “Share this entry“. I’d like to change this to “Share this article“.

    To adjust the title of the sharing section, add this filter in the functions.php file.

    add_filter('avia_social_share_title','avia_social_share_title_mod');
    function avia_social_share_title_mod() {
    	$output = 'Share this article:';
    	return $output;
    }

    Is there a simple way (in the browser Inspect function) to figure out which file the code comes from, to set this text?

    If you’re not familiar with the code base, one way to proceed is by performing a “search all” for a specific string or class name throughout the entire directory. This will provide you with a list of files in which the specific string or element is rendered. If you’re using an IDE such as VS Code, you can do the following steps.

    // https://code.visualstudio.com/docs/editor/codebasics#_search-across-files

    Other ways are to use the get_included_files function or use PHP debugging tools such as Xdebug.

    // https://www.php.net/manual/en/function.get-included-files.php
    // https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug

    Best regards,
    Ismael

    #1424829

    That’s extremely helpful – thank you @Ismael!

    This can be marked as “solved” now.

    Cheers!

    #1424847

    Hi adapt,

    I’m glad that Ismael could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Removing “post-meta-infos” completely’ is closed to new replies.