Yesterday I asked this question but I think I bad posed my question and I still didn't solve it.
Therefore I'm trying to describe my problem a bit more:
I am developing website on wordpress using woocommerce. And I need to set my SHOP page as a HOME page. And everything would be fine if I just set it in settings, e.g. set Homepage as an static page or redirect it.
But I need to add Home page to menu and access it from shop page after clicking it in MENU.
So the question is: Are there any posibilities to change Main page SLUG for instance to /blog so I could redirect / to shop and then add to menu /blog link to access HOME page ?
(now I'm using cookies and redirect users only once but it's not the best solution)
Related
I'm trying to build my theme for a school project and I'm using wordpress to set up a blog.
I don't have intentions of sharing this theme so all of the website design is already premade.
The problem occurs when I try to enter the blog.php file from my navigation. My homepage is index.php file from which i navigate to the blog site. Everytime I do so the index page refreshes instead of opening the blog.php file, but the browser search bar shows the directory location as blog.php.
Wordpress does not work on a process of just make a file and it can be used as a page. Instead, it uses template structure. Meaning blog.php is not a page, it is a template (if you have setup the file structure correctly). Putting link through a menu to "blog.php", confuses WordPress and it just displays the default page of the site. You should make each page through WP "Pages" section.
StackOverflow hates WordPress questions. WordPress has its own help forum. I suggest googling for it and ask questions there.
If I mistook your question here are some helpful links:
https://developer.wordpress.org/themes/basics/template-hierarchy/
https://codex.wordpress.org/Theme_Development
I've got a problem with my Magento CMS pages. On my homepage I've got footer links that bring the customer to CMS pages with success when they're clicked.
I tried to add 2 more links with their own CMS pages and impossible to access them.
The working links look like this:
<li class="uppercase"><?php echo $this->__('Who are we ?') ?></li>
Then, for the same code with the correct link it redirects my link to the homepage with a 302 code.
I went to a redirect checker website and it said that I had 302 redirects on the homepage when I click only on my new links only.
I already did the following:
Go to my admin panel to uncheck Redirect to Base Url;
Go to {MagentoRootFolder}/app/etc/modules and remove modules one by one to see if there is a module that creates the issue.
Look in my .htaccess to comment Redirect directives.
I don't find the origin of this redirection if someone could help.
Thanks.
Try to change CMS page URL key and then try. You can also check it in URL Rewrite section. Is there any rules define for these CMS page or not.
I found the problem.
It came from the fact that previous developers blacklisted all CMS pages in a Module Observer but the ones on the homepage (the ones which works) so I added my CMS pages to the whitelist and it works fine now.
if (Mage::getStoreConfig('privatesales/forcelogin/enable')) {
$requestPathWhiteList = array(
'[Path you want to whitelist]',
'[Path you want to whitelist]',
'[Path you want to whitelist]',
'[Path you want to whitelist]',
'[Path you want to whitelist]',
);
$cmsPageIdentifierWhiteList = array(
'[URL KEY of your cms page you want to whitelist]',
'[URL KEY of your cms page you want to whitelist]',
'[URL KEY of your cms page you want to whitelist]',
);
My website like www.example.com. I need to go to redirect a url as 'press.example.com' when click on the blog. I went through a lot of reference but could not find any solution. How can I change the url for only the blog page. Any help would be appreciated.
Normally this is done by creating a custom menu item which links to an external link, as this is a separate site the blog settings in the example.com website are not relevant in this case.
I am new to Magento. My client assigned me a task. I completed the task mostly, but one thing that I don't understand and also my client don't understand. When I preview the home page from admin panel, I get this page opened.
But I open live website, this page opens:
When I put content on CMS page in admin panel, it gets visible on page preview, as you can see the heading Google Maps, I put this string in content, but is not visible in the live page. What's going on there, I don't understand. Please help me to solve this problem.
Website URL: http://spacedookie.com/
http://spacedookie.com/ is site landing page and http://spacedookie.com/home is cms page.
Magento have provide any cms page to set as landing for the site.
According you site your site default layout is 1col but this cms page layout 2-col right
You need redirection 301 http://spacedookie.com/home to http://spacedookie.com/
check 301 for Magento, redirect the url from "www.domain.com/home" to base url "www.domain.com"
Goto admin>CMS>Pages>Select your home page > then goto Design tab select page layout
1colums and save it
Go to system >> Configuration >> Design and check your selected package and theme under each scope. mainly under default config.
I want to modify the Index page or the Landing page of my WordPress site so that it looks different from the rest of the site. Essentially I want the body of the index page to be 5 large rotating pictures with the same static menu and header as the rest of the site but I'm not sure where and what I need to edit to make this change. I assume it has something to do with the theme itself but I thought I would ask here first to see if anyone has any expert opinions. Thanks!
You can set a static home page by going to Appearance->Customize->Static Front Page. Then create the page under Pages->Add New. You can add whatever custom code, images, etc. that you want on that new page. With most themes, your site's header and footer will be displayed on the page automatically.
From the codex: http://codex.wordpress.org/Creating_a_Static_Front_Page