I recently uploaded my website online and following that, I want to edit a few new things but as shown in the image above, the page has no style. The wordpress theme I bought is heavily relying on templates and the only way to edit them is through the customizer but I am trying to look for a solution and seem to find none, is there anything that can be causing this? I deleted all plugins that are not needed incase it was some plugin breaking it but that does not seem like the case.. any help?
sidenote: in the localhost the customizer works fine, its just that when I published it online when this issue has occured.
Related
Recently, when I view a page in Wordpress Preview mode, it always loads the default template (theme page.php file) whereas when I look at the published page, it's the right template. I have around 10 different templates for my pages. Just keep in mind that I'm not talking about the theme itself, but the Wordpress template structure. I included three pictures. The admin panel one, shows different templates for my page.As shown, I chose Fixed-Width Clean Page. The second picture shows the page in Preview mode.As you can see it includes a sidebar which is included in the default template but not the one that I chose. And the last picture is the Live view of the website which is correct. As you can see the sidebar doesn't exist. I searched all over the internet and did some suggestions, but none of them work (like saving the permalinks again, changing the theme and changing it back again, etc). The only change that I recently made was upgrading to Wordpress 4.7.4 and blocking access to admin panel by ip using .htaccess file (I removed the .htaccess file, but still no luck). Any suggestions would be appreciated.
OK, after some time I figured out what the problem was. The "WP Subtitle" plugin version 2.9, breaks the preview functionality if you have multiple templates. I report the issue to them as well, but posted the answer if somebody came across the same problem. In order to fix the issue temporarily, i commented out the below line (line 74) on the plugin's main file (wp-subtitle.php):
//add_filter( 'the_preview', array( 'WPSubtitle', 'the_preview' ), 10, 2 );
I'm new to WordPress and actually repairing a page as a favour. The page was originally created by an inexperienced developer which is why it has its faults.
My main concern is that I don't seem to get any of the plugins to work. The page has a custom theme. I tried switching to a previously uploaded theme and all the plugins worked like a charm on that.
The client seems reluctant to abandon the custom theme and short of having to take it apart piece by piece I'm trying my luck here.
Both wp_head() and wp_footer() are called and seem to be in the right places, wp_head() right before the </head> tag and wp_footer() right before the </body> tag.
What am I missing?
This is a very general question, but here are some starting steps to try and see how you get on...
In wp-config.php add or alter the following: define('WP_DEBUG', true);
This enables debuging to screen and will throw up any errors.
I would still advise you then try the plugins one by one - in theory once you get one working then the others should be ok. There is more to a theme than just having wp_head() etc... make sure the loop is in place and things like get_sidebar(). Compare whole pages to those of a working theme.
I have WordPress 4.1.1 installed. I want to be able to write PHP code for specific pages. I found an answer on here which seemed like the best option I have come across so far, this answer can be found here:
How to add a PHP page to WordPress?
But - this does not seem to work and I cannot figure out why.
I followed the steps accordingly and I was able to complete all steps with no problem but when I preview the page its blank.
My only guess is that this might have something to do with version 4.1.1 - is there any reason this method would not work with version 4.1.1?
Your help is greatly appreciated.
If you need to add PHP to a page you need to open your themes template files in a text editor of your choice.
If enabled, access the Theme Editor from the Administration > Appearance > Editor menu.
http://codex.wordpress.org/Appearance_Editor_SubPanel
If your pages are blank you might have an error with your PHP code.
Personally I use this plugin:
https://wordpress.org/plugins/php-code-for-posts/
However you can also use custom page templates: http://codex.wordpress.org/Page_Templates#Creating_a_Page_Template
It depends what your personal code needs are.
Hello everyone i'm new to wordpress and trying to learn more about it , well the thing is that i installed a new theme to my blog and it seems everything works fine except the shortcodes functionality, and i don't know why or where should i look for that problem this is a picture to my admin posting page it shows that i choosed the button short code and nothing happen no parameters to fill in and even when i press the send to editor button nothing happen , please help me to find out my problem :
the picture :
There are posts online that complain about the Shortcode Generator not working. You should first turn on debug in your wordpress config wp-config.php and see if there are errors being logged.
The best solution is to learn how to add shortcodes manually, it's easy [myshortcode]...[/myshortcode]
im looking easy steps for convert any html/php template into a very simple wordpress theme for personal use. I have a site, in there i want news at the begining using the wordpress interface, i worked a lot with wordpress and i made some themes, but modifing already made ones, so i didnt care a lot about the code.
So, lookin in internet i dint found a good step by step tutorial in order to create a simple theme in wordpress from 0. Remember that i dont need sidebars, widgets and soo, i only need "the loop", or, the last 3 post made.
It's as simple as installing wordpress correctly and then including the wp-blog-header file into your pages. Doing so will give you access to all of WP's functions.
require('/path/to/wp-blog-header.php');
$posts = get_posts('arguments');