Linosa
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Contact form not workingOk, I’ll try.
Forum: Fixing WordPress
In reply to: Page navigation not workingIt worked! Thanks a lot!
Forum: Fixing WordPress
In reply to: Page navigation not workingForum: Fixing WordPress
In reply to: Change Menu from "pages" to CatagoriesMaybe this can help you out?
https://iinternetmoney.com/website-developement/how-to-add-categories-to-your-top-menu-in-artisteer/Forum: Fixing WordPress
In reply to: Highlight Current Page in menu not working on "posts" pageAnyone?
Forum: Fixing WordPress
In reply to: Change Menu from "pages" to CatagoriesDo you have any files with the art-menu?
Forum: Fixing WordPress
In reply to: Change Menu from "pages" to CatagoriesHm… no. I can’t really find your menu there.
Forum: Fixing WordPress
In reply to: Change Menu from "pages" to Catagoriessource code?
Forum: Fixing WordPress
In reply to: "Padding" around ImagesI just checked quickly and I think the problem is that your image is linked.
Forum: Fixing WordPress
In reply to: Highlight Current Page in menu not working on “posts” pageIt’s all done correctly in my css-file.
The problem is that my subpages and the “current highlighting” dosen’t work at my “Latest news” page, which is a page with posts. It works fine for all content pages.
Here’s a link to my site:
https://ateensonline.com/The news can be found at “What’s up”.
Forum: Fixing WordPress
In reply to: Highlight Current Page in menu not working on “posts” pageI have the same problem. This is my menu code:
<?php $pages = get_pages( array( 'sort_order' => 'ASC', 'sort_column' => 'menu_order', 'parent' => 0 ) ); ?> <?php if ($post->post_parent) //I am a subpage $id = $post->post_parent; else //I am a page $id = $post->ID; $subpages = get_pages("child_of=".$id."&sort_column=menu_order&&exclude=1355,1352,1358,1360,1362,1342,1364,1367"); ?> <ul id="navcatlist"> <?php foreach ($pages as $page):?> <li <?php if ( ($page->ID == $post->ID) || ($post->post_parent == $page->ID) ) echo 'class="current-page-item"'?>> <a href="<?php echo get_permalink($page->ID); ?>"><?php echo $page->post_title ?></a> <?php if ( ($page->ID == $post->ID) || ($post->post_parent == $page->ID) ): ?> <ul> <?php foreach($subpages as $subpage): ?> <li <?php if ($subpage->ID == $post->ID) echo 'class="current-subpage-item"'?>> <a href="<?php echo get_permalink($subpage->ID); ?>"><?php echo $subpage->post_title ?></a> </li> <?php endforeach; ?> </ul> <?php endif; ?> </li> <?php endforeach;?>
Forum: Themes and Templates
In reply to: K2 Theme – Change Sidebar to LeftIf u post your source code it would be much easier to help you out.
Forum: Hacks
In reply to: Sidebar menu with Child Page (SubPage) activeHey,
I’ve used this at my website too, and it works perfect… except for two things.
1. I would like the second level (sub-menu) to sort by ID and not alphabetically.
2. The third level on the menu is now included in the second level. I don’t want the third to be displayed at all.Any ideas? Here’s my code.
<?php $pages = get_pages( array( 'sort_order' => 'ASC', 'sort_column' => 'menu_order', 'parent' => 0 ) ); ?> <?php if ($post->post_parent) //I am a subpage $id = $post->post_parent; else //I am a page $id = $post->ID; $subpages = get_pages(array("child_of"=>$id)); ?> <ul id="navcatlist"> <?php foreach ($pages as $page):?> <li <?php if ( ($page->ID == $post->ID) || ($post->post_parent == $page->ID) ) echo 'class="current-page-item"'?>> <a href="<?php echo get_permalink($page->ID); ?>"><?php echo $page->post_title ?></a> <?php if ( ($page->ID == $post->ID) || ($post->post_parent == $page->ID) ): ?> <ul> <?php foreach($subpages as $subpage): ?> <li <?php if ($subpage->ID == $post->ID) echo 'class="current-subpage-item"'?>> <a href="<?php echo get_permalink($subpage->ID); ?>"><?php echo $subpage->post_title ?></a> </li> <?php endforeach; ?> </ul> <?php endif; ?> </li> <?php endforeach;?>
Forum: Themes and Templates
In reply to: Vertical dropdown menuPlease?! Just give me something and I can work from that.
Forum: Themes and Templates
In reply to: K2 Theme – Change Sidebar to LeftYou probably need to go to the template files and edit there, and then also change the css.