I've assigned a page from Pages module as home page. And now the main menu shows the menu item called 'Main' which leads to '/main' page. How can I change that to make the 'Main' menu item link to really '/' of the site ?
Updated:
Sorry if it is not clear, the 'page' i mean is really a page - ( Site building -> Pages ).
If you go to the Site Information section of your admin panel, you can set a specific node to show up as the front page. I would use the node/XX way of referencing your node, since the alias you gave the node ("main") may change. Once you've done that, you can change your menu link to go to <front>, which will automatically send it to whatever node is designated as the front page.
Got it.
If I mark a 'page' as to be the front page of the site, and it has a menu item, this menu item leads to something like '/main', but not the '/'. To fix it I removed any menu reference on the page properties and then in the menu editor add the required link with the path ''.
Thanks for the response!
On top of what everyone else has said, can I just let you know of a mistake that I made.
I had pathauto switched on, but it was set to delete old path and create a new path if the title of a page changed.
And you know what, this happened to my home page, so where the page I'd over ridden and called homepage, was now called welcometothisthatortheother (if you know what I mean).
My advise if your using pathauto is to use the nid value ( node/11 ) or make sure unlike me, that you only create new paths on page inserts rather than updates.
Related
This may seem novice, but I assure its not.
So, I have a site, which displays blog posts by date from new backwards.
Standard stuff. However, what I'm trying to do is create a temporary homepage, lets call it 'yogo'. It displays some ad, or image, with a button link.
What I'd like is a direct link to the actual blog feed which displays in a given theme site's frontpage. Is it just a block?
When Im in Appearance->Reading, I can change homepage to 'yogo' fine. But, say a visitor is on 'yogo', and I want a button they click on to link to what would be the original theme frontpage with blog content, it should technically be 'Home' but is that coded somewhere through the wordpress software like the Reading mentioned above.
Maybe Im missing something, should I shut off permalinks, and dig for it in actual page extension?
Im trying to avoid using Guten. or Elem. to build out a blog page.
Any advice, thanks in advance.
Once add your code in front-page.php or home.php you can use get_the_permalink() function to get the blog page URL and will pass in "a" HTML tag like this -
Your Blog Name
Might be it can help you.
Just a quick update. actually solved this.. In simple terms, it is possible to do this really quickly through the Wpress UI. From your backend, these are the steps in the following order:
(firstly. shout out 2 user 'mirchev' because if u didn't point out templates I would of been way off. actually after about an hour of research after that) So it all takes place in Setting->Reading. From what I've read, Wpress started off as a blog based system anyways, so it was solved a long time back. Basically to start, 1. Create 2 pages, no need to add any content as long as they are 'new' and you make note of the names.
2. Also important -in the template area to the right panel when the new page editor loads up (you don't need to add any texts, images or whatever, including the area on the right just make sure "default template" is selected. 3. Afterwards, these 2 pages are 2 be used in the Setting->reading section.
What you want to do is when you enter this setting of your Wpress site, instead of having your "homepage" radio button be "latest posts" set it to 'static page,' and 4. important - select 1 of the 2 new pages you created as the static page. 5. Now, also important, for the posts page, select the 2nd of the 2 new pages you created. 6. Once this is done, what happens is your website loads the static page, which you may customize however, and then you can go into your Appearance->menus and add the appropriate link to the 2nd of the 2 new pages you created to load the blog, or link to it whichever way you choose. More often than not a menu item should appear if that is the setting you customized.
..And that is all. if fact I was very surprised just how smooth it was.
good luck ! ..--'''~~**
Separation!
I have update a page in my wordpress site using web admin back end, but what I see is that even if I update a page, it does not get updated online. Moreover, some of the content of the page which I see online /live are not actually texted in the area where we put the content.
On the right side navigator, in the page attribute area Parent has been set to No Parent, template --> Home Page.
Can you please let me know what could be the possible reason why the live content of the page is different from what I can see in the actual text area through web admin panel?
Also updating a page does not reflects on the page as well for that particular page.
First make sure you are editing the right page. Click in the frontend adminbar on edit instead of navigating in the backend through the pages list.
Secondly it can be any caching related issue. Check out if there are any plugins or settings for this.
Areas that are on the page but not editable via the content can be widgets or any kind of theme builder stuff. Check in the backend design->widgets.
The page hierarchy (parent: no parent) can be differ from the actually website navigation. Check out design->menus. It is possible to build other hierarchies in the menus.
Ok, here is the thing I have already added the categories to the pages (with the help of a plug-in, it's called Add category to pages) and so now I want to change the URL to display the categories (that is to say I want my pages to have this estructure: mysite.com/%categories%/%page_name% right now it has his structure: mysite.com/%page_name%), I have tried to google it but I can't find a straight answer. So if anyone has some resources (tutorials, articles) or some idea (if it's not to much to ask with code examples) on how to achieve this it would be fantastic. (And believe me, I'm asking as my last resource)
you can do it easily with "Page Parent" option available in WordPress.
Steps To create a subpage
Go to Administration > Pages > Add New screen.
In the right menu, click the “Page Parent/No Parent” drop-down/page attribute widget. The drop-down menu contains a list of all the Pages already created for your website.
Select the appropriate parent page from the drop-down menu to make the current Page a child Page.
Add content to the subpage.
Click Publish when ready.
Output - https://example.com/asia/india/
More Info. - Wordpress Subpage Permalink
well you can do this for categories and products from permalink setting, but if you want to manipulate the page url according to yourself then you need to create an blank page with the prescribed name whichever you want to insert, i.e, if you want to insert amazon within the url then create an url with name of amazon, and put the other url's under this parent page.
This way your url will look like
http://example.com/amazon/page_name
Unable to post as comment so directly posting it in an answer, in WordPress you can have custom URL. After you logged I'm as admin under dashboard you have general settings where you can put custom URL's like http://example.com/%caregory%/page_name
For more reference also checkhttp://codex.wordpress.org/Changing_The_Site_URL
I don't know if you tried this but after you login as admin, under Dashboard>>Settings>>Permalinks>>Custom Structure.
Let me know if you have already tried that.
I'm trying to theme a Drupal site.
From what I was reading, if I have page--front.tpl.php, it should work for the homepage.
However, it doesn't seem to work for me.
From themer info, it is suggesting the file name to be page--node--6.tpl.php, which works, but I don't want to hardcode the id number.
Also $is_front is always coming back false.
For this node, I created a "Page" content type and select "bring it to front" and also set in site information for this node, which I alias to "Home" to be the default page.
Still not working. What am I missing?
Thank you,
Tee
If you have in page info
Default front page: node/6
then you could use page--front.tpl.php to theme the node as the front page, it must work.
Check you have the page--front.tpl.php in the correct place, in the
theme folder of the active theme.
Flush caches.
This might be a really simple thing but i was unable to find an answer to it. The issue is this:
I'm using Drupal 7, updated from Drupal 6. I have main menu to which i've assigned some pages. Whenever i edit one of those pages Drupal, for some reason, removes it from the menu links. Anyone ever had the same problem or would anyone have any ideas as to why it behaves this way?
Ok, let's try to rule some things out. You said that you assigned this menu to some pages. If you are viewing the page in view mode, then click edit, then save, you will be taken back to the view of that node. If you are viewing all of your content in the admin, then click edit by the node, then click save, you will be taken back to the list of content in the admin. Take a look where you assigned this menu to, AND/OR where you did not assign it to. Make sure you are not looking at a page where the menu was not assigned to.
You only needed to enable it from the settings - 'Provide a menu link'.