Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #751381

    Hi there,

    please help us with the following two problems:

    1) Displaying Metadata on Blog-Overview-Page:
    We have changed the layout of our Blog(-Overview)-Layout to “Rastered-Layout” and now we need to make some changes to the meta data presented there. We want to get rid of the comments to be displayed and show the author instead.
    Please have a look at the following screenshot: https://www.microtool.de/wp-content/uploads/2017/02/BLOG.jpg There you can see the settings and the Blog-Overview as well.

    Where can I find the .php to change that? Is that done in the /includes/loop-index.php ?
    Can I put a copy of that with my changes in my Child-Theme in the same directory?

    2) Other Overview-Pages
    We also have a press-page where we do not make use of featured images. How do we get rid of those just on the press-page?

    Thanks in advance,
    microTOOL

    #753512

    Hey microtool,

    Thank you for using Enfold.

    1.) You need to modify the config-templatebuilder > avia-shortcodes > postslider.php file. Look for this code around line 439:

    	$meta .= "
    <div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount}
    

    2.) Use this css code:

    .post-type-archive-press .slide-image {
        display: none;
    }

    Best regards,
    Ismael

    #753556

    Hi Ismael,

    thanks a lot. The images on the press-archive page are now gone (2.) but the comments (1.) still give me a headache. I allready commented out that whole part

    /* if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= ""; //<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						} */

    and nothing changed. Maybe there is something wrong with the cache, but all caches that I know of have been cleared and reset and still the comments show up.

    Best regards,
    microTOOL

    #754075

    Hey!

    That is the only file that renders the blog grid layout. It’s probably cached. Please disable the WP Rocket plugin while you’re working on the site. Enable it once you’re completely done with the modifications.

    Best regards,
    Ismael

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