• Resolved Paul

    (@rhododendron)


    Other than the home page the backto top icon doesnt show the desired icon. Do not know whats wrong with it.

    Can somebody help?

    link

Viewing 9 replies - 1 through 9 (of 9 total)
  • How did you put that png there?
    I mean, the code you used.

    p.s.
    (not related to your issue)
    Also, why do you use customizr/inc/img ? use something in your child theme no?

    Thread Starter Paul

    (@rhododendron)

    add_filter( 'tc_colophon_right_block', 'my_colophon_right_block' );
    function my_colophon_right_block() {
        $mybacktotop = sprintf('<div class="%1$s"><p class="pull-right"><a class="back-to-top" href="#">%2$s</a></p></div>',
                    apply_filters( 'tc_colophon_right_block_class', 'span4 backtop' ),
                    '<img src="wp-content/themes/customizr/inc/img/1393356512_icon-ios7-arrow-back.png">'
                );
        return $mybacktotop;
    }

    This is what I used

    Do I have to use the same from my child theme. But ideally this should detect the png from the existing location.

    Yes, but the src is “wrong”.
    See what happens:
    that’s the url to your image in home: “https://www.rhododendron.in/wp-content/themes/customizr/inc/img/1393356512_icon-ios7-arrow-back.png&#8221;
    that’s the url to yout image at https://www.rhododendron.in/page/2/ :
    wp-content/themes/customizr/inc/img/1393356512_icon-ios7-arrow-back.png:
    https://www.rhododendron.in/page/2/wp-content/themes/customizr/inc/img/1393356512_icon-ios7-arrow-back.png&#8221;

    Can you try using this snippet instead of your one?

    add_filter( 'tc_colophon_right_block', 'my_colophon_right_block' );
    function my_colophon_right_block() {
        $use_child_base = false; //change this to true if your image is in child theme
        $base = ( $use_child_base ) ? TC_BASE_URL_CHILD : TC_BASE_URL;
        $path = 'inc/img/1393356512_icon-ios7-arrow-back.png';
        $mybacktotop = sprintf('<div class="%1$s"><p class="pull-right"><a class="back-to-top" href="#">%2$s</a></p></div>',
                    apply_filters( 'tc_colophon_right_block_class', 'span4 backtop' ),
                    '<img src="'. $base . $path .'">'
                );
        return $mybacktotop;
    }

    Thread Starter Paul

    (@rhododendron)

    Excellent!

    You Are just Awesome! A big Thanks to you! ??

    Thread Starter Paul

    (@rhododendron)

    I have one more View port related problem for mobile users. Will post a new topic for the same.

    And Thanks again for getting this resolved. ??

    Thread Starter Paul

    (@rhododendron)

    @d4z_c0nf

    After the new customizr release I changed the png path to my child theme. it is still not working.

    And I can see this working too.

    Try clearing your cache:

    Firefox>Options>Advanced>Network tab Clear Now button

    Thread Starter Paul

    (@rhododendron)

    well I fixed the path issue now the png is in child theme. and am relaxed.

    thanks a lot:)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Back to Top Icon is not showing in other pages’ is closed to new replies.