davy_yg
Member
Posted 3 months ago #
page-about.php
<div id="AboutNav">
<h3>About</h3>
<p style="border-bottom: 1px dotted #787878; width: 200px;"></p>
<a href="https://localhost/wordpress/about/">Vision & Mission</a>
<a href="https://localhost/wordpress/about/">History</a>
<a href="https://localhost/wordpress/about/">Client</a>
<a href="https://localhost/wordpress/about/">People</a>
</div>
Hello, in wordpress in page about, I create a custom page that consists of 5 other pages.
How to link those pages in wordpress. Any idea ? How to link those pages with wordpress CMS ?
Thanks for suggestion.
The simplest thing to do would be to edit the About page and insert links into it. Is that what you want?
If you really want to use the code you showed, you could install the Exec-PHP plugin and then just put the code in the page.
davy_yg
Member
Posted 3 months ago #
I read the manual but still do not understand what it is for ?
Perhaps I do not understand what you want to do.
The Exec-PHP plugin will let you put code into a Post and execute it. Using the plugin, you could put the code you showed directly into a Post and have it run.
plugin?? dont think so u need it anyway.. which permalinks setting r u using? u can try this btw.. just umm go to pages>all pages and there ull see all ur pages u created for those which u want to link press "view" located under the pages titles this will lead u to ur pages and
<a href="https://localhost/wordpress/about/"> and replace https://localhost/wordpress/about/ with your new URL u see on the URL bar when u r viewing ur page
sorry for bad english..
CHEERS!!
davy_yg
Member
Posted 3 months ago #
How to code it ? I've installed the plugin.
page-about.php
<div id="AboutNav">
<h3>About</h3>
<p style="border-bottom: 1px dotted #787878; width: 200px;"></p><br />
<a href="https://localhost/wordpress/about/about-vision.php">Vision & Mission</a><br />
<a href="https://localhost/wordpress/about/about-history.php">History</a><br />
<a href="https://localhost/wordpress/about/about-client.php">Client</a><br />
<a href="https://localhost/wordpress/about/about-people.php">People</a><br />
</ul>
<br>
</div><br />
I've tried that. It shows me different page then I've coded in each page. I copy paste page-about.php code to other pages. Yet, whenever I click each navigation page, it shows me banner without content. Similar to index.php page (banner with content). I only place the banner in index.php. Why is it ? (the url is correct, but the web that appears looks different)
davy_yg
Member
Posted 3 months ago #
This time it shows me blank pages on other pages:
<a href="https://localhost/wordpress/about/about-vision.php">Vision & Mission</a><br />
<a href="https://localhost/wordpress/about/about-history.php">History</a><br />
<a href="https://localhost/wordpress/about/about-client.php">Client</a><br />
<a href="https://localhost/wordpress/about/about-people.php">People</a><br />
Why is it ?
Please follow these steps:
- Install, activate and configure the Exec-PHP plugin.
- Edit the Page.
- Erase everything on the Page.
- Switch to HTML mode (not Visual).
- DO NOT EVER switch back to Visual mode on that Page!!
- Paste in your code.
- Update the Page.
- View the Page.
It still may be that the simplest thing to do is just put the links into the page in the usual way.
- Keep the Page in Visual mode.
- Highlight the text you want to display for the link.
- Click the 'Link' icon - looks like chain links.
- Enter the URL for the link.
- Click 'Add Link'.
- Update the Page.
- View the Page.
davy_yg
Member
Posted 3 months ago #
Okay, the problem with creating new page is the new page will be included in the upper navigation while my point is the upper navigation must remains in about:
(http://localhost/wordpress/about/)
- Vision & Mission
- History
- Client
- People
(These are the side navigation)
Only the side navigation changes with different posting for each side navigation item. How to create a new page with out adding a new item in the upper navigation ?
I also have already try to create a new custom page such as:
https://localhost/wordpress/about/about-vision.php
Yet, wordpress is unable to open that page (it opens a blank page) eventhough the codes inside it is exactly the same like about page. Why is it ?
Use the WP Menu system to create the menu. Then you can control exactly what it shows. Here is a tutorial:
http://ericasays.com/2984/wordpress-3-custom-menu-tutorial/
davy_yg
Member
Posted 3 months ago #
Is that a plugin ? I wonder why the menu shows in the wordpress tutorial video difference from the menu in my wordpress 3.1.1 ?
It is not a plugin. It is just the built-in WP Menu system. The structure is set by the WP Menu system, the appearance is set by the theme.
davy_yg
Member
Posted 3 months ago #
How to go to the menu system in the appearance there are only three items: Themes, Widgets, Editor.
To add menu I usually add the page, the problem with that is every page has a top navigation. I cannot choose which page has a top navigation and which does not.
Don't know why you don't have Appearance->Menus. Maybe you should try re-installing WP by going to Dashboard->Updates and clicking 'Re-install Now'.
davy_yg
Member
Posted 3 months ago #
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\wordpress\wp-includes\class-http.php on line 1106
It sounds like something is seriously wrong with your setup. Is it out of the question to start fresh, or maybe you have a backup copy of a working version?
davy_yg
Member
Posted 3 months ago #
Hmmm.. Strange, maybe it's my custom themes. I do not know what I have done. If I switch to another themes. The appearance menu is complete: Themes, widget, menus, Themes Options, Background, Header, Editor.
What have I done ? How to fix it ?
Can you delete the theme and install a fresh copy?
davy_yg
Member
Posted 3 months ago #
I can simply deactivate the themes. and the normal appearance menu appears.
web link
Well, my point is how to keep using my custom themes and the normal appearance menu still appears. haha. or if there is another way to fix the navigation then it does not matters if the normal appearance menu does not appears.
I wonder why the appearance menu disappears only for custom themes. Another theme that I try doesn't change the appearance menu at all.
Where did you get your custom theme? Do you have an original copy? If you do, then DELETE the existing copy and install a fresh copy. If the current copy got corrupted somehow, this should correct it.
davy_yg
Member
Posted 3 months ago #
Well, I develop the custom themes. I do not know what I did that change the appearance menu configuration.
Since you wrote the code yourself and nobody else has access to it, it will be nearly impossible to help with the problem.
davy_yg
Member
Posted 3 months ago #
I can show you one other theme in which I am taking core codes from:
wordpress themes
I have that theme also downloaded and when I try to activate the theme, it also show partial appearance menu.
davy_yg
Member
Posted 3 months ago #
Well, now I figure how to show the complete menu in appearance. Yet, I still confuse how to show the box background for each menu item. It's not being shown how to in the tutorial.
I would like to grey box with reverse gradient for each menu item. I can create the image. But how to integrate them to the menu item ?
Web link