Tagged: background image, google map, login, logout, registration
-
AuthorPosts
-
October 30, 2015 at 9:44 am #527267
Hello there,
I know that you are not offering support for 3rd party plugins, but as I believe this would be a relatively easy change, maybe you can help me.
I’m using UserPro WP plugin to customize access, registration and user management and its developers said that in order to customize the login calls, I should use the following code in the theme I’m using:<?php if(is_user_logged_in()){ $logout_link = home_url().'/'. userpro_get_option('slug_logout'); ?> <a href="<?php echo $logout_link; ?>">Logout<a> <?php } else{ ?> <a href="#" class="popup-login">Login</a> <?php } ?>
I believe I should either modify an existing function or add a new one inside the config.php file of Enfold theme, but I really hope you can point me to the right direction.
Thanks for your support!
October 31, 2015 at 4:07 pm #527926Hi nightjar!
If your wanting to add it in the header then perhaps around line 62 in the /enfold/includes/helper-main-menu.php file would work for you.
Best regards,
ElliottNovember 1, 2015 at 1:34 pm #528089Thank you Elliot for your suggestion. However, I need to add that login link only for people who would like to post a comment. So that link should appear under that “Leave a comment” header at the start of the comments section. It would be also useful to add that function on a sidebar widget, though. Do you think it would be possible to do it as well? And how?
I don’t know if it’s better to open separate threads for some other problems I’ve got with Enfold. Please advise! In the meantime, I add my questions below:
- I set a backrgound image on the header. How can I hide that BG image while scrolling on desktop browsers? Please note that the header BG image is already being hidden while scrolling on tablets.
- I tried any method already posted on this forum to make a Google map work. But it doesn’t (see private link). Any suggestion?
Hope to hear from you soon!
All the best,
Diego- This reply was modified 9 years ago by nightjar.
November 1, 2015 at 1:41 pm #528092Oh, BTW – I have updated the Enfold Italian translation (there were about 200 text strings missing). You can download it from here.
November 2, 2015 at 1:52 pm #528463Never mind about the Google map. I gave up using the Avia layout element, because it just doesn’t work. While adding a standard iframe on a sidebar does work as expected.
The other issues are still standing, though…
November 3, 2015 at 5:26 am #528985Hi!
Modify the comments.php file then look for this code:
comment_form();
For more info regarding this function, please refer to this link: https://codex.wordpress.org/Function_Reference/comment_form
You can also add the script inside a widget if you want to display it in the sidebar. Use this plugin to enable php codes: https://wordpress.org/plugins/php-code-widget/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.