Wordpress plugin not showing on page - php

it could be a stupid question, but I just can't find the answer to it. A few minutes ago I installed WPForms to create a contact form for my website. The setup went fine, I have checked it multiple times, but it won't display on my page.
I am using my own child theme from mh-magazine-lite.
The link to the website: http://st359450.cmd16c.cmi.hanze.nl/drimble/contact/ (Please note it's the first wp website my group has ever made for a school project, so it's not great)
Why can't I see the form on my page?

Navigate to the back-end of your WordPress website. (That's usually yoururl/wp-admin.)
In the menu that's on the left-hand side of the page, you should see a tab that says WPForms. Hover over that tab, then click add new.
When you finish customizing the form, copy the embed code (top right | next to save button), it should look something like this:[wpforms id="1712"]
Once you copy the code, go to the desired page you want to post the form on,
and click edit page.
Once you're in the editor, make sure the Text tab is selected, not the Visual tab. Paste the embed code in there. It should work then
Hope this helps.

The form is already added to your webpage. The reason you can not see it is that the code has been commented. So in the plugin settings check whether there's an option to activate or visible the form. Or if you can edit the html code in the relevant page remove <!-- before and --> after the form.

Related

Wordpress site broken, editor not working properly or at all

im working on adding and modifying the content of a website, but im having multiple issues with the very basic functioning of the editor. Please keep in mind i didnt build this site myself, so i might not be aware of many things that may be obvious to you.
If left unmodified, to the user, the site shows no issues whastoever, it is I as the administrator who experiencies all these issues.
I will describe/ show the issue and give a list of the things i have tried already.
While looking at Cpanel's PHP admin app, and the htaccess file, i see the php version is 7.4. However, while using wordpress, the site health status tool warns me that im using php version 7.1.33
Im not getting the admin bar when looking at the website, it just shows a white bar with nothing else.
3.If i go to the backend editor and try to customize the template im using (called Jupiter 5) i get very few options in the side bar, it doesnt show things like header options for example. And i have no floating editor options on the site itself, i get no tools, nothing.
See image
When i go inside wordpress to "pages" and try to edit a page, the editor box shows the content with the code included or shows nothing while using the "visual composer" mode. This is how it looks
When i try changing the template, the content appears like this. A huge mess, though some editor controls show up in this case
6.I tried using plugin detective but when i launch it, and it asks for my credentials, i hit login yet it does nothing.
I tried disabling all plugins, only header and bottom show up kinda normally, the body becomes text with code like the image of point 5. I still dont get the admin bar on site.
If I, after disabling all plugins go to pages, then select any page and click "edit", the adress of the site shows im on the edit page, but the page itself is completely blank, i dont even get the wordpress bar at the left.
If I disable all plugins, then activate only a plugin called WPBakery, the body of the site stops showing text with code and actually shows most visual elements, no edit options though, except for a small text at the bottom. A weird thing about this plugin is that despite of its name, when activated, it shows up as "Visual Composer" instead of WPBakery.
So far, besides disabling plugins and testing, i have only tried Updating Wordpress, the only thing that changes is that the admin bar finally shows, but the "customization" mode remains exactly the same, useless.
Classic editor is already installed btw.
I hope someone can help me, thanks.

Some elements missing / changed when trying to change from html to php

I'm asking for help for those who have experience in changing an html file to a php file. I've tried everything I know (and I'm not the smartest I admit) but I don't understand why the following is happening.
Currently: When viewing on mobile, the mobile menu button has gone, the toggle switch which changed prices from monthly to annually, tabs which displayed different content has gone. As a result:
If there was a toggle, both the toggle results are displayed one above the other
If there was a tab, each tab element is displayed underneath the other
The mobile menu button has gone completely
Background:
I purchased an HTML template but it turns out the seller didn't want to help. I wanted to split and convert the page into a php page as I wanted a single header/footer file which I could import. As you will see (if you check the repo) the header.php and footer.php file is getting imported into the page php file.
I created the pages by first:
Renaming the original html file to a php file
Cut the header and footer and import them back into the page php file
That's all I have done. It seemed to work, however another check (after cache cleared) I noticed the issues.
The link to the site page im referring to is:
https://blueboxhosting.co.uk/products-cloud-hosting
But if you look at any of the pages, you'll see errors on all of them now where they're should have been controls (eg toggles, mobile menu, tabs etc)
I've created a snipped so you can view the code and HOPEFULLY spot where I've been a moron:
https://bitbucket.org/snippets/bbhostinguk/7e5qxp
Any help with this would be amazing as I just can't figure it out.
Start by running the HTML generated by PHP through a validator, e.g. https://validator.w3.org/
Your code has numerous stray tags which may or may not affect the rendering.
Another tip is to comment off everything and then uncomment section by section and check when things start to break.

Wordpress: How to build a link with php-function call?

I want to add a logout link to my wordpress page.
Logout
The link is visible on the page but when i click it it redirects me to
https://www.mywebsite.de/%3C?php%20echo%20wp_logout_url(%27https://www.mywebsite.de/%27)%20?%3E
which of course result in a 404. Obviously the php code is not executed. What am i doing wrong? How can i build the link dynamically?
EDIT:
I want to place this link via wordpress dashboard to the navigation menu (Appearance -> Menus -> Costum Links). For a first try i just added the link to my front page (Pages -> All Pages -> Choose Front Page --> added link in editor to page content).
In booth cases the php code is not executed but added to the link which results of course in a broken link (404).
The control characters like "<" get substituded. The whitespaces too. Maybe it is a character encoding problem?
Logout
https://developer.wordpress.org/reference/functions/wp_logout_url/
The problem was that is not possible to execute php code in wordpress editor (which is a good thing due to security reasons).
So i found another way: I created a shortcode for generating my dynamic link/url. With the plugin 'Shortcodes in Menus' everything works just fine.

MediaWiki with BlueSpice is not showing content after sidebar adjustment

I did some adjustments to the sidebar for instance added a link to a specific page. I was looking for guidance on this and found BlueSpice manual. They say you have to edit the site MediaWiki:Sidebar. Afterwards the link appeared in the sidebar. All fine.
But i noticed that the shiny icons disappeared. So i did some research on how to add an icon next to the link. The BlueSpice manual came up with
* recentchanges-url|recentchanges|Icon-letzte_Aenderungen.png
So i did this. Unfortunately i did not upload an icon via Special:Upload as recommende but named an icon form the skin folder. Thought this would work as well.
But since then i am not able to see any content in the wiki any more.
How could this happen and how can i revert this?
Since i am not able to login (because the content section stays empty) i cannot do changes to the page MediaWiki:Sidebar anymore.
I created a page via commandline with sample Mediawiki:Sidebarand tried to overwrite changes via
php edit.php -s "Quick edit" -m oldSidebar < newSidebar
But this just creates another entry in MySQL and did no changes to the other one.
Maybe there is a way to upload the named icon somewhere? Or to revert changes? Or something else...
Thanks for help in advance!
You may delete the Mediawiki:Sidebar page to restore back to the BlueSpice default sidebar. From the command line:
php <wikipath>/maintenance/nukePage.php --delete "Mediawiki:Sidebar"

Expandable jQuery content opens when reloading

I built in a jQuery collapsible plugin into my fixed header. (You can click the button in the right upper corner to open it)
My problem is as following, when I open the page, reload or click on a link it automatically opens for a second. I would like it stops doing that and instead only opens when someone actually clicks on the button.
I don't know which part of my code to add here so I uploaded both files.
Here is the code to the php file
Here is the code to the jQuery file
I'm sorry for the inconvenience. I am new to this website and I just started building my own website but I'm willing to learn.
Regards
Try setting the container that holds the content to display:none in your css file to begin with.
Then when the button is clicked change the display value. You may not need to change the display value here as the jQuery which activates and shows it just now may work fine.

Categories