-
AuthorPosts
-
April 13, 2016 at 8:20 pm #613177
Hello,
I would like to move the “scroll-top-link” a little bit down and put another image above. This new one should be visible always.
Is there a way to place that new image (I prefer Quick CSS)?
Thanks a lot and best regards
Kai
PS.: Maybe, this would be my way to move the “scroll-top-link”: https://kriesi.at/support/topic/back-to-top-linkicon-in-footer/#post-138268April 14, 2016 at 5:54 am #613474Hi Kai!
Thanks for getting in touch with us!
Sorry but this will take more than a bit of CSS. In your WordPress installation please go to the footer.php file and find this code in line 190:
<a href='#top' title='<?php _e('Scroll to top','avia_framework'); ?>' id='scroll-top-link' <?php echo av_icon_string( 'scrolltop' ); ?>><span class="avia_hidden_link_text"><?php _e('Scroll to top','avia_framework'); ?></span></a>
and add this line above it:
<img class='custom_icon' src='http://www.yoursite.com/yourimage.png' />
Add the following to Quick CSS field to move the scroll to top image down and position your image above it:
.custom_icon { position: fixed; border-radius: 2px; height: 50px; width: 50px; line-height: 50px; text-decoration: none; text-align: center; right: 50px; bottom: 5px; z-index: 1030; } #scroll-top-link { bottom: 5px !important; }
Let me know if you need further assistance.
Best regards,
JordanMay 13, 2016 at 10:54 pm #632244Hello,
I added this code to change de image: but back to top is not working. Could you help me?
Thaks a lot.
Best regards!May 16, 2016 at 5:00 am #632701Hi,
Could you provide us with a link to the site in question so that we can take a closer look please?
Best regards,
RikardMay 18, 2016 at 12:45 am #634099Hello Rikard.
Off course. thanks a lot
May 18, 2016 at 3:21 am #634116Hi,
Since this is a live site I din’t wanted to add this code without an icon please replace the word “icon” in the below code to the icon image path and add it to functions.php
function custom_icon(){ ?> <script> jQuery(window).load(function(){ jQuery("#scroll-top-link").html( " <div id='custom-icon'>Icon</div> " ); }); </script> <?php } add_action('wp_footer', 'custom_icon');
To adjust the above icon on the front end please make change to the bottom and right values as required.
#custom-icon { width:50px; height:50px; background:gold; display:block!important; position:fixed; bottom:70px; right:50px; }
Request you to open different tickets for different issues.
Let us know if you have any questions.
Best regards,
VinayMay 18, 2016 at 3:57 am #634130Hello Vinay
Thank you very much for the quick answer.
I get an error on this line: jQuery(“#scroll-top-link”).html( ”In addition , I would like to know if this would be the final code (changing ” SITENAME ” and IMAGENAME.png for the real name of the site and image):
function custom_icon(){
?>
<script>
jQuery(window).load(function(){
jQuery(“#scroll-top-link”).html( ”
<div id=’custom-icon’>http://SITENAME.COM/shop/wp-content/themes/enfold-child/IMAGENAME.png</div>
” );
});
</script>
<?php
}
add_action(‘wp_footer’, ‘custom_icon’);Thanks a lot and best regards
May 18, 2016 at 4:28 am #634138Hi,
Actually the code get’s auto indented here but i tested this on my installation and it works fine. Please make sure the underlined line is one line.
I tried to troubleshoot this issue but the login credentials you provided do not work for me. Would you mind checking once again and then send us working login credentials?
You can replace the word icon with and image :)
Let me know if you have any questions.
Best regards,
VinayMay 18, 2016 at 4:55 am #634141Hello again.
The problem is in this line:
jQuery(“#scroll-top-link”).html( ”
Thanks a lot!
Best regardsP.s. Sorry I do not understand in what part replace the word with the picture.
May 18, 2016 at 9:14 am #634238Hey!
I have updated the code to suit the custom modification. You can see now the icon is above the other one…
You need to open Appearance > Editor > functions.php and at the bottom in the above code block replace the text “Icon 2” with URL to the image icon of your choice.
Best regards,
VinayMay 18, 2016 at 4:52 pm #634647Thanks Vinay
The image looks good the problem is the image icon not goes to the top. How could I fix it.
Thanks a lot and best regards
May 18, 2016 at 6:59 pm #634724Hi!
As i understand the aeroplane image on the bottom right should scroll to top when user clicks right? Please clarify if you want the yellow button next to the aeroplane needs to be removed?
Best regards,
VinayMay 18, 2016 at 7:06 pm #634728hello Vinay,
That´s right. Exactly like that.
Yes, the yellow button needs to be removed
Best regards and thak you!
May 19, 2016 at 7:43 am #635008Hi!
I have updated the code in functions.php please review the site :)
Cheers!
VinayMay 19, 2016 at 3:59 pm #635278Hello Vinay .
Excellent!! Thank you very much!!Can I ask you one more thing ? In cellular version , the plane overlies the social icons. In the home page it looks perfect but not in the rest of the site. Could you put the plane more down?
Thank you very much and best regards
May 20, 2016 at 6:03 am #635703Hi,
All changes are updated please review the site :)
Best regards,
VinayMay 23, 2016 at 6:31 pm #637011Hi Vinay,
I think my English is complicating what I need. I am sorry.
I see the plane + icon Enfold (large resolution) and the plane (in phone resolution), but in this last case the plane is on the social icons . I just need the plane to go up, but the plane must be away from the social networks icons (not on them).Thanks a lot!
Best regardsMay 23, 2016 at 9:00 pm #637062Hi,
I think you have explained to me well and i have attached the screenshots. You may not see the same until the cached files are cleared in your browser.
Please try to hard refresh by pressing Ctrl + Shift + F5 on your browser or press the F12 key to open chrome dev tools and right click on the refresh button and select “Empty Cache and Hard Reload” and review the site again.
If this is not what you wanted please post us a screenshot/mockup of what you would like to achieve? You can upload the screenshot to imgur.com or dropbox and share the link here :)
Best regards,
VinayMay 24, 2016 at 11:07 pm #637792Hello Vinay!
I sent the information and screens by privatebest regards
May 25, 2016 at 7:18 pm #638227Hey!
The login URL is not working for the new site.
To hide the default scroll to top icon add the below css
.avia_pop_class { display: none !important; }
The plane icon will appear on the text while scrolling as it is a fixed element however it should not affect the readability as users can scroll the content.
If i move it below then it will be on top of social icons so i suggest to you to keep the plane icon in the current location :)
Best regards,
VinayMay 26, 2016 at 3:41 pm #638770Hello,
I have a little problem with this famous image… i know…super famous…
If you look at the original web (attached in private), the picture It is visible only when the scroll makes it necessary (not all the time).
In addition , I need to replace the image for another, smaller one. You can help me ?Thanks a lot and best regards
- This reply was modified 8 years, 5 months ago by marilusnm. Reason: I need another change
-
AuthorPosts
- The topic ‘Place a small image/icon to fix position like (position like scroll-top-link)’ is closed to new replies.