I have a WordPress site using a custom made theme by some other developer. That theme uses several custom made templates. Each templates exposes some fields in the front page editor (Pages->Add New, Template).
Now I want to change some existing template, I edit the template file and updated/saved that. When I preview that page, I can see the changes but when I open that page in (front end) editor mode, I cannot see any changes.
For trial I deleted everything from that template and create a new page with that template selected and to my surprise I can see all the fields in the front end editor that were there before I deleted the template code.
To summarize, a custom template file had some field before, later on I deleted all the code but in front end editor I can still see those custom fields.
I tried some caching plugins and tried to clear cache but no help.
I am out of ideas that what this could cause this.
I cannot share code as my company do not allow that. So any clue/ideas will be helpful.
Thanks in advance...
Related
The cart, my-account and checkout pages are all blank when I try view them. All I get is the header and footer. All I have done so far is download WooCommerce, go through the settings and add theme support. My shop page wasn't working until I added theme support but now thats the only page that does. Also I've noticed that if I use WooCommerce shortcode in my php files I can get the pages. But the shortcode doesn't seem to be working in the backend. BTW I'm using my own custom theme incase thats relevant.
What can I do to fix this?
update:
This must be an issue with my theme as if I set one of the default ones to active all the WooCommerce pages show. But I don't know what my themes issue is yet.
update: I have noticed that the WooCommerce pages are allowing me to add templates to them, apart from the shop page which is working. Why is this happening?
There are few steps to do.
First turn on debug, by switching WP_DEBUG to true.
View source of page, and check if everything is being rendered, and also check console for JS error.
At last, for theme, if after switching to default theme, content shows up, there is a theme related issue.
Check for missing templates or template parts or structure within related with page from which content is missing and compare it with default themes templates and template parts.
See if there is some template part missing, or modified, like content.php or content-page.php, the_content() , etc.
I had created a custom page-Contact.php file to use as the template for the contact page of my website.
When adding short code (or any text at all) to the WordPress editor in my WordPress admin section, no updates were being made to the html after inspection of the source.
I solved my own problem, but it was a little tough for me as a beginner to find the answer so I'll post it again in hopes of helping someone else.
Add the loop!
All pages need a loop in order to display any info/changes from the visual editor.
i'm writing my first Plugin for Wordpress. A booking calendar. The Admin and Setting Page is already working. The Admin has the possibility to create, edit and delete bookings. I'm struggling with the Front End.
How do i call my "Create a Booking" Form for the User?
Do i need do create a separate Page for that or is it possible for the Admin to call my "Create a Booking" Form in every Page?
There are many ways... The simplest would be to put your form directly into the content of a page or post. In that case, anyone could access the form. If you need to dynamically determine how the form is displayed, you'll want to put it into a shortcode, or use a Wordress page-template in your theme [confusing, because this is totally different from a page!]. Use shortcodes to port your project to any theme, use page templates to lock your functionality into one specific theme. To alter every page, you would put your functionality in a plugin, or in your theme's functions.php file.
https://codex.wordpress.org/Shortcode_API
https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/
When I add widgets to my "First Front Page Widget Area" nothing appears on my homepage.
I am using WordPress template Twenty Twelve. I created a "home" page and assigned it to be a "Front Page Template". I also customized the template to show the static page "home". I assigned the recent posts to show on homepage as a tests and nothing shows, just the page title (Home).
I tried changing my file Fishpig_Wordpress.xml (under app/etc/modules/) to Fishpig_Wordpress.xml.old, but this made WordPress inaccessible (404 error), so I changed the name back to Fishpig_Wordpress.xml.
Lastly, I tried updating the the extension to the latest version 3.0.3.8 (stable) and still the widgets are not showing.
Anybody knows what else I can do or what might be preventing my widgets from working?
Thank you!
Firstly, the app/etc/modules/Fishpig_Wordpress.xml file is the bootstrap file for this extension. This file instructs Magento where the code lives for this file. Deleting - or renaming - this file will not fix any issues but will disable the module (you may need a cache refresh for this change to be acted on).
With the latest version of the extension, widgets should work in the left or right columns of your Magento template. To ensure this, happens, enable the Twenty Twelve theme (which you have done) and ensure you are using the latest version of wordpress.xml. Check your custom theme's layout folder for wordpress.xml and rename it wordpress.xml.old, as this will force Magento to use the latest version of the file in base/default. After doing this, you will need to refresh your layout XML cache.
Next, ensure that you actually have some widgets enabled. To test this, enable a default widget like the Search widget or the Recent Posts.
The above is generic advice for people who can't get widgets to display. Your situation is slightly different as it sounds like widgets work for you, just not on your custom homepage. If this is correct, check that your custom WP page is using a template that has a sidebar column. You can do this by checking the HTML source. Alternatively, reply to this answer with your URL and I'll take a look.
I am building a theme that has a lot of custom templates, like every page. Ridiculous, but for some reason the template I made for the "postings" page is not getting the posts? I have set the post page in reading preferences, and I have set the page to use my template, but it still publishes posts to a default template. Of all the customization I built into this I did not expect the blog part to give me trouble! lol Anyone run into this kind of thing?
Thank you.
The way I usually to it is to have standard setting in reading preferences.
Build my front-page in index.php
Build a template for blog posts
Add a page and assign the blog post template
Of course you then have a kind of placeholder page sitting amongst the other pages, don't really like that. But it works.