Forum Replies Created
-
AuthorPosts
-
Leonardo MartinezParticipantLeonardo MartinezParticipant
@Mahesh: I inserted the code you gave me in the .rar and it didn’t brake the layout this time, but it has no effect. It keeps the same size of the thumbnails.
Leonardo MartinezParticipant@mahesh: Yes, it was working before the change, I removed the code you provided and it worked as before.
Any idea?
I don’t know what is wrong, because it should be working as you tested it.
Leonardo MartinezParticipantMahesh, I did what you told me but it didn’t go right. It fixed the syntax error but it broke my site’s layout, just like the image.
Any suggest?
Leonardo MartinezParticipantHello Mahesh, I created the Child Theme and then in its functions.php I pasted the code and changed the Width and Height as you told me, just like bellow.
<?php // // Recommended way to include parent theme styles. // (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme) // add_action( 'wp_enqueue_scripts', 'theme_enqueue_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') ); } // // Your code goes below // add_action( 'init', 'catchresponsive_child_custom_thumbnail_size' ); function catchresponsive_child_custom_thumbnail_size() { remove_image_size( 'catchresponsive-square', 200, 200, true ); // used in Archive Left/Right Ratio 1:1 add_image_size( 'catchresponsive-square', 325, 200, true ); // used in Archive Left/Right Ratio 16:9
The result is:
Parse error: syntax error, unexpected $end in /home/sosna518/public_html/narguilebr.com.br/wp-content/themes/child-themere/functions.php on line 20
What did I do wrong? I didn’t even use the Regenerate Thumbnails.
Leonardo MartinezParticipantHi!
I’d like to use google AdSense ads on my sidebar, but I’ve been looking for how to insert the code (I want to know where to insert the code, to be more specific) and didn’t find anything explaining how I can do it. -
AuthorPosts