• Resolved makeshifter1

    (@makeshifter1)


    Hi I can’t seem to upload a favicon to my theme, as the dialog box opens up mostly off-screen. Very strange. I’ve tried in several browsers, it’s always to the far left of the screen and you can’t access the upload image button..

    thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you look through the posts here, there is fix for it. It is a matter of pasting some code in one of the theme files. Worked for me. I also had to apply a fix for using a logo on the top left.

    Please replace the codes below on theme-options.php located inside includes/theme-options

    function sampression_admin_enqueue_styles() {
    	/* register */
    	wp_register_style( 'sampression-theme-options-css', get_template_directory_uri() . '/includes/theme-options/theme-options.css', array(), '1.4', 'screen' );
    	/* enqueue */
    	wp_enqueue_style('sampression-theme-options-css');
    }

    with

    function sampression_admin_enqueue_styles() {
    	/* register */
    	wp_register_style( 'sampression-theme-options-css', get_template_directory_uri() . '/includes/theme-options/theme-options.css', array(), '1.4', 'screen' );
    	wp_enqueue_style('thickbox', get_template_directory_uri() . 'wp-includes/js/thickbox/thickbox.css', false, false, 'screen'			);
    	/* enqueue */
    	wp_enqueue_style('sampression-theme-options-css');
    }

    Hope this works. Please tell if it works

    Please replace the codes below on theme-options.php located inside includes/theme-options

    function sampression_admin_enqueue_styles() {
    	/* register */
    	wp_register_style( 'sampression-theme-options-css', get_template_directory_uri() . '/includes/theme-options/theme-options.css', array(), '1.4', 'screen' );
    	/* enqueue */
    	wp_enqueue_style('sampression-theme-options-css');
    }

    with

    function sampression_admin_enqueue_styles() {
    	/* register */
    	wp_register_style( 'sampression-theme-options-css', get_template_directory_uri() . '/includes/theme-options/theme-options.css', array(), '1.4', 'screen' );
    	wp_enqueue_style('thickbox', get_template_directory_uri() . 'wp-includes/js/thickbox/thickbox.css', false, false, 'screen'			);
    	/* enqueue */
    	wp_enqueue_style('sampression-theme-options-css');
    }

    Hope this works. Please tell if it works

    Where do we change the code?? Theme-option.php is located where?

    Go to our theme folder -> includes -> theme-options -> theme-options.php

    Thread Starter makeshifter1

    (@makeshifter1)

    Hi, thanks for the reply. I’m sorry I still can’t see how to access ‘includes/theme-options’
    where is the theme folder located?
    thanks

    my site is https://making-time.net

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Favicon upload Sampression’ is closed to new replies.