I've got a problem. I'm currently working for a client in an Wordpress buildup with Elementor. They have a form made with GravityForms.
When I submit the form it automaticly scrolls to top. I want it to do nothing more than submit the form. So... no scrolling.
I found out I can 'easy' set it off. But it won't work over here
https://docs.gravityforms.com/disable-automatic-scroll-form-confirmation/
On some other websites I found they said 'Place it in the functions.php'.
So I did, I had no idea where specific in the fuctions.php... but It didn't work on top neither on the bottom.
Other websites told me to work in the theme files (since there is no theme because I'm using Elementor I can't find where...
The docs.gravityforms.com told me to paste it in form_display.php...
Whatever... Where ever I post the 'easy' line of code. It wont work...
Can somebody please help me out.
Where specefic do I have the place this line of code
add_filter( 'gform_confirmation_anchor', '__return_false' );
Thanks in advance!!!
functions.php is a Theme File that you cam Access From WordPress Dashboard>> Apperence>> Theme Editor >> and now look for the right panel http://prntscr.com/prb6v2
After opening the functions.php file put that line of code at the bottom of it & Save.
However, It's recommended to do such Theme file edit via child theme otherwise you will lose your edit's after next theme update.
Related
I'm a newbie! I'm working on a Ashe child theme on Wordpress and I would like to add a CTA button just below the site description.
The theme calls for a header-page template (get_template_part( 'templates/header/page', 'header' ), therefore I'm set to add my button directly in the page-header.php file.
However, it doesn't matter what I add below the site description, nothing shows up on the browser nor in the browser inspector, which it's weird, right?
It's not a cache problem. I've flushed it and try to add the button in other parts of the theme and everything worked fine. Anyone out there had the same problem? If so, how did you solve it?
Thank you very much in advance!
New to wordpress theme editing and php.
I am working on a website and i have run into an issue, within the style.css there is a #meadia breakpoint added that screws up the view for mobile users and adds a margin.
This is the code:
.wpb_row.full-width-content{margin-left:-10px!important;}
Now what i do is change this in the child theme, theme editor to:
.wpb_row.full-width-content{margin-left:-10px!important;}
And it says that this is saved!
However, when I return to the page and inspect the mobile view, it still says
.wpb_row.full-width-content{margin-left:-10px!important;}
Am I completely missing something here, or making a noobish error here. Hope anyone can help. Good day to you!
I just created new homepage with elementor plugin on Wordpress. But when I tried to edit, I get error message. I understood that I must to add to the theme. But I don't know where in my theme Magazinews. I tried in "page.php" and "index.php", but nothing happened.
The the_content() missing doesn't really mean your theme is missing the content. Also, since you were able to edit that page before ( when you created it ) your theme obviously has the_content() there.
In this case, try disabling other plugins and see if that helps. If it does enable them one by one and you should be able to find the culprit.
If you left any information behind make sure to add it.
on my wordpress site, I have ); in the top left corner of the website, showing on all pages. it will show also on some admin pages, but not all. For instance, after updating a plugin, it will show there under the Update Plugins header.
Any idea as to which file to find this in and where it might be in there?
Disable all plugins and see if that solves the issue. If it does, enable them one at a time until the issue reoccurs. You'll have found the problematic plugin once it does.
Otherwise, the first place I'd turn attention to is your functions.php file in your active theme. You can switch to a different them and see if the problem disappears, to quickly confirm it that's the problem or not.
I have Admin role but the collapsible menu (left side panel) is missing, I tried to create another admin but still no avail. I can access WP file when I type it as URL (ex http://xxx-xxx.com/wp-admin/plugins.php) Please help I'm still a newbie.
Thanks you very much!
You might want to check the functions.php file for the installed theme. Look to see if there is any PHP code that starts with the line if(is_admin()). One of these may be affecting the admin area, or a function intended for the front end may be screwing with the admin area and need if (!is_admin()) wrapped around it. Are you familiar with this sort of WordPress stuff?
NOTE: we talked through the problem in the comments, so I added the answer formally here.
(The theme's functions.php had a remove_menu() line, which was commented out to restore the admin sidebar menu.)