onix218
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Home Page Not FoundI’m really glad you were able to figure it out. Great job tinkering with it! Sorry I wasn’t much of a help on the solution.
Have an awesome day!
Forum: Fixing WordPress
In reply to: Home Page Not FoundForum: Fixing WordPress
In reply to: Home Page Not FoundYou’re very welcome.
What were the two different site links?Also it looks like the page that your home button goes to is different than the site homepage. This could be an issue in different areas it would be hard to tell.
Under pages in the dashboard, do you have another page labeled home? If so click to preview it and see if it is the one with the error. Also what is in the contents of the homepage?
Forum: Fixing WordPress
In reply to: Uninstalled a plugin and now get errorsCan you access the dashboard?
Forum: Fixing WordPress
In reply to: Stop nav menu on a certain pageif (is_page(‘institutional-investors’)){
your missing a closing quote on the reference maybe?
Forum: Fixing WordPress
In reply to: Home Page Not FoundI had a similar issue when copying my website to a new URL. Here are the fixes I tried.
If you CAN get into your dashboard.
1. Go to permalinks and click on the radio button for default or custom if you want it to be the specific homepage you have.(I would recommend trying default first.OR at permalinks if you see that the links are DIFFERENT than the URL that you have for your website you need to go into your wp-config.php which is usually in the folder for your website so for me I use WinSCP because my webserver is hosted on a VirtualMachine/Linux and the directory is something like /var/www/html/(website name). Once there add
define(‘WP_HOME’,’https://example.com’);
define(‘WP_SITEURL’,’https://example.com’);to any place that looks logical and change the https://example.com to your HOMEPAGE url and make both the site url and the home url the same.
This should either 1. help you get to your dashboard or 2. set the permalinks properly to what you want then in the dashboard so that it can fix all the links on your website.Sorry if that was a lot on information, please ask me a question if something I said didn’t make sense.
Also here is the link for maybe a helpful page
https://codex.www.ads-software.com/Changing_The_Site_URLHope that helps! =)
Does anyone happen to know why my sidebar for isnt showing up on the parent pages?
<?php
if(!$post->post_parent){
$children = wp_list_pages(“depth=0&title_li=&child_of=”.$post->ID.”&echo=0″);
echo “here”;
}else{
$children = wp_list_pages(“title_li=&child_of=”.$post->post_parent.”&echo=0″);if($post->ancestors)
{
$ancestors = end($post->ancestors);
$children = wp_list_pages(“title_li=&child_of=”.$ancestors.”&echo=0″);
// you will always get the whole subpages list
}
}if ($children) { ?>
<ul id=”sub-pages”>
<?php echo $children; ?><?php } ?>
Definitely. Sorry I totally forgot.
So here is what I have so far.
<ul id=”sub-pages”>
<?php if( is_page() && get_post($post->post_parent):
wp_list_pages( array( ‘sort_column’ => ‘post_title’,
‘child_of’ => $post->post_parent,
‘title_li’ => null ) ); ?><?php if( is_page() && get_post($post->post_parent)->post_parent ) :
wp_list_pages(‘title_li=&parent=’.get_post($post->post_parent)->post_parent);
endif; ?>The behavior of this does what I want it to do when you click on the child of a parent who has children, but I click on a grandchild the sidebar that existed for the child class goes away and I want it to stay the same.