Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #439924

    Hi!

    I’m working on a child theme. I’m trying to insert some customization into the single.php file and the loop-index.php file.
    In order to do so I had a look at the support forum and the enfold documentation.
    I uploaded the single.php (customized file) into enfold-child folder. Still in the enfold-child folder, I created a new one called includes where I uploaded the customized version of loop-index.php.

    The customization are not displayed into the web page, it seems the blog pages are still generated with single.php and loop-index.php from the parent theme.

    Do I miss any step?

    Looking forward for your help!

    Thank you very much in advance!

    #440510

    Hi effetiweb!

    What are the exact customizations your doing? Are you using a caching plugin?

    Best regards,
    Elliott

    #440870

    Hi Elliott,

    No, I’m not using any caching plugin.

    I changed the title tag of the post title. From H1 to H2. In the page is still visible H1 tag.
    In the meantime, I tried to do other customization, like add a small icon beside the post date, this one is shown correctly.

    So at moment, it seems some customization are shown regularly other no.

    I hope this help you in any way to understand the situation and to deliver to me a solution.

    Thank you for your time dedicated.

    #441368

    Hi!

    Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details here as a private reply.

    Best regards,
    Rikard

    #444035
    This reply has been marked as private.
    #445099

    Hey!

    Are you trying to do this? https://kriesi.at/support/topic/replaced-the-default-blog-latest-news-title-needs-h1-heading/#post-220234

    Go ahead and send us a link to the exact page and take a screenshot highlighting what your trying to do so we can get a better idea.

    1. Try this out, https://kriesi.at/support/topic/blog-post-excerpts-2/#post-169503.

    2. Try line 117 in the functions.php file.

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    

    You may need to regenerate your thumbnails to see changes, http://wordpress.org/extend/plugins/regenerate-thumbnails/.

    3. Around line 539 in the /enfold/framework/php/class-framework-widgets.php file you should see this.

    echo "</strong>";
    

    Try adding this beneath it.

    echo "<a href = '".get_permalink()."'>Read more</a>";
    

    Best regards,
    Elliott

    • This reply was modified 9 years, 6 months ago by Elliott.
    #445119

    Hi Elliott!

    Thank you for your reply.
    Unfortunately I didn’t solve anything yet.

    I’m working on a Child Theme. So I would like to apply the code to the child one instead of the parent theme. Otherwise, no sense to use a child one.

    For the first issue: I already did this before opening this topic: https://kriesi.at/support/topic/replaced-the-default-blog-latest-news-title-needs-h1-heading/#post-220234. See this in the functions.php line 40, it works.
    My request is about to change the tag from H1 to H2 for the second title in the page. At moment blog pages have two H1 tags. e.g. sitedomain//il-numero-quattro/ -> title for Il numero quattro.

    For the other points:

    1) In my functions.php I already inserted this code:

    
    //Increase excerpt length
    add_filter(‘avf_postgrid_excerpt_length’,’avia_change_postgrid_excerpt_length’, 10, 1);
    function avia_change_postgrid_excerpt_length($length)
    {
    $length = 155;
    return $length;
    }   
    

    This isn’t work. The link provided: https://kriesi.at/support/topic/blog-post-excerpts-2/#post-169503 is referred to the parent theme. I want to do that in the child theme.

    2) Same problem,

    
    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    

    I want to apply this in the child theme.

    3) Any chance to apply this in the child theme instead of the parent one?

    
    echo "<a href = '".get_permalink()."'>Read more</a>";
    

    Hope I explained well what I’m trying to achieve.

    Thank you!

    Best regards,

    #445818

    Hey!

    1. So the code is working but your wanting to do it in a child theme or the code is not working at all?

    2. Try adding this to your child theme functions.php file.

    	function avia_backend_add_thumbnail_size(&$avia_config)
    	{
    		if (function_exists('add_theme_support'))
    		{
                            $avia_config['imgSize']['widget'] 			 	= array('width'=>136,  'height'=>136);
    			foreach ($avia_config['imgSize'] as $sizeName => $size)
    			{
    				if($sizeName == 'base')
    				{
    					set_post_thumbnail_size($avia_config['imgSize'][$sizeName]['width'], $avia_config[$sizeName]['height'], true);
    				}
    				else
    				{
    					if(!isset($avia_config['imgSize'][$sizeName]['crop'])) $avia_config['imgSize'][$sizeName]['crop'] = true;
    
    					add_image_size(
    						$sizeName,
    						$avia_config['imgSize'][$sizeName]['width'],
    						$avia_config['imgSize'][$sizeName]['height'],
    						$avia_config['imgSize'][$sizeName]['crop']);
    				}
    			}
    		}
    	}

    3. I haven’t tested it out but you could try copying the whole class to your child theme functions.php file. Lines 420 – 665. If that does not work then you would need to edit the parent theme instead.

    Best regards,
    Elliott

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