Adding Custom Pages in Wordpress - wordpress

I am making my first steps learning to code, so I am building a Wordpress theme to make some experiments and see how everything works from the practice.
I installed wordpress locally and I a made a Child Theme. Now to start designing my new theme I started watching how the wordpress structure works and there is something that I don't understand:
I am making my portfolio, and I have some sections (Paintings, Films and Photography). And each section has a subcategory.
It means that each section is a page and each subcategory is a post? Or each section is a page and each category is a page too?

You can add your subcategories as subpages for to other pages. To do so, follow these steps:
Go to Administration > Pages > Add New panel.
In the right menu, click the "Page Parent" drop-down menu.
The drop-down menu contains a list of all the Pages already created for your site.
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.
More information on pages here: https://codex.wordpress.org/Pages

Related

Content is not visible when clicking on menu pages - Wordpress

I run a website - https://travelando.info/ - and I am having a hard time putting content on some pages. If you click on the menu EUROPE or UNITED STATES, the pages are empty. If you click on specific countries, the content is there. How to make sure that everything that is posted on the pages under the respective menu, gets also published on the page of the menu itself?
Thanks for your help!
I tried reordering the menus in the backend but it did not help.
Note the top-level menu item is linking to https://travelando.info/europe/
Your category page is located under https://travelando.info/category/europe/
From Admin Dashboard > Menus > [your menu] - either add a custom link directing to ../category/europe/ or add the "Europe" category, found under "Categories"

Wordpress page jump

Hi I am making a website for my college using Wordpress. The site content is made through Visual Composer plugin. I am having a problem with page jump using <a id="#section"></a>. There is a page with full of student thumbnails
http://www.abcdef.com/people/ where all the photos of people are linked to a particular section in the page http://www.abcdef.com/department/.
If you click on Person 1 photo, the following page with Person 1's section should be loaded http://abcdef.com/department/#tapan. Instead, it always loads to the bottom of the page. But once you are in this page and if you change the URL and replace the #person1 with #person2 or #person3 it scrolls to the particular section.
I am not able to understand why it is not scrolling when loaded for the first time. Any insights?
Try disabling "smooth scroll on click".
The option located here:
Appearance -> Customize -> Global Settings -> Links style and effects

Wordpress menu links wrong

I have a Wordpress theme which has been designed, however, the links are wrong at the top
For example:
About Us should go to here
Furniture should go to here
The link to the blog is here
I have already tried adjusting the position, and the width of each menu item, but to no avail.
In Wordpress Admin console there is the option Appearance>Menu. Create a new menu, add the items you want (you can add pages you made, create custom items with links to other pages, etc), save the menu. Now go to Appeareance>Themes>Customize current theme and change the navigation path.

Wordpress News website, multiple layout, category base?

I have a theme, I am html web designer, but I can understand some php / wordpress coding also
I have a wordpress theme & I want to convert it into a news portal
Please guide me, I want to convert it into category base, should be like that
http://www.firstpost.com/ please guide me, how can I do ?
is it archive page or separate category page?
--
http://www.firstpost.com/category/world
when browsing category page, you can see there are different post layouts
without any duplicate post
please guide me
You can simply make a main menu containing links to your categories. This will load in the page you set as post-page (ie. the page that contains your posts).
Go to Appearance - Menu. Create a menu and set it as the main menu.
instead of ticking the boxes for linking to pages, create menu links like www.domain.com/category/cats and www.domain.com/category/dogs
http://codex.wordpress.org/Function_Reference/wp_nav_menu

WordPress 3 - Problem with menu highlighting

I'm building a site that has a two level menu created with the admin Menu tool. The menu contains links to both Pages and Category lists. It doesn't link directly to Posts. The problem is that when you drill down into a Category list and click to view a single post in that Category, the menu highlighting gets it wrong.
I've tested on a new install of WP3, set up a simple test site with a few pages and posts in 3 categories. All I've changed in the theme is the style.css to highlight the whole path.
http://danwashere.com/wp_dev/
Here's a direct link to view a categorised post here:
http://danwashere.com/wp_dev/2011/07/28/blue-rocks/
Everything is a page, except with the section "Advice Categories" - all those sub items are category lists containing categorised posts - each post is only categorised with a single category. The menu structure is defined entirely in the Menu settings.
On that Blue Rocks page, the menu should be highlighted like this: Advice Categories -> Rocks, but it's highlighting the Sample Page item. And if you rollover the "Advice Categories" menu, you'll see that it is correctly highlighting the "Rocks" menu item.
It seems to me that WP is applying the 'current-post-parent' class to the wrong top menu item, but maybe I'm missing something?
// Edit, rewrite to make it clearer.
It seems as though were both having very similar issues. - Trouble highlighting correct menu parent with wp_nav_menu classes while viewing “single posts”
Im not using categories as links in my menu but I use them to filter content to each page via query_posts...if you examine the output from Wordpress you'll notice its actually placing the current page class onto the incorrect li tag when viewing a single post - Is this happening to you as well?

Resources