Trouble Adding New Logo [closed]
Line 429 (or thereabouts) of your theme’s style.css, change height: 120px to height: 150px.
Line 429 (or thereabouts) of your theme’s style.css, change height: 120px to height: 150px.
First of all, you can modify your header and footer from either using FTP client else from WP admin dashboard. if you are not familiar with FTP the please follow following steps. 1.Go to WP admin dashboard. 2.Under the Appearance menu, there is an option for edit theme. name it Edit. 3.In right side section … Read more
in your theme’s functions.php, look for this: // The height and width of your custom header. You can hook into the theme’s own filters to change these values. // Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values. define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘twentyten_header_image_width’, 940 ) ); define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘twentyten_header_image_height’, 198 ) ); Its … Read more
I think you are trying to do a “Theme Options” section. It’s not so simple to do imo and it is very widely procedure so I recommend Codex lecture. http://codex.wordpress.org/Creating_Options_Pages
You can do it in one of two ways: Method 1 It seems that the theme you are using has an options panel where you can define a logo. Have you looked into that? Method 2 The dirty way to do it. Change this line: $logo = $options[‘logo’]; To: $logo = “URL_TO_LOGO”;
add_filter( ‘get_avatar’ , ‘my_custom_avatar’ , 1 , 5 ); function my_custom_avatar( $avatar, $id_or_email, $size, $default, $alt ) { $user = false; if ( is_numeric( $id_or_email ) ) { $id = (int) $id_or_email; $user = get_user_by( ‘id’ , $id ); } elseif ( is_object( $id_or_email ) ) { if ( ! empty( $id_or_email->user_id ) ) { … Read more
Since going forward all themes in the theme repository will have to use the customizer for everything https://make.wordpress.org/themes/2015/04/21/this-weeks-meeting-important-information-regarding-theme-options/, I would expect any other functionality that have done similar things to be deprecated from core with time. If you want different image upload functionality then best thing is probably to write your own and not to … Read more
You can use getimagesize() for this purpose: list($width, $height) = getimagesize(esc_url( get_theme_mod( ‘mitch_logo’ ) )); echo “.logo { width:{$width}px; height:{$height}px; background: …; }”; If that adds a little milliseconds to your page load time, I can edit this to provide a JavaScript version of the answer 🙂 Hope that helps.
You are using the Child theme for the Vlog theme. Header file should be in the parent theme file. The parent theme file name should be Vblog. Go to Dashboard –> Appearance –> Editor. Top (just below the top) of right corner you can find “Select theme to edit:” text. There is a select box. … Read more
Please find the answer here – https://codex.wordpress.org/Creating_a_Favicon