ThemeShaper Forums » Thematic

[closed]

Page links dont work with permalinks activated

(8 posts)
  • Started 12 years ago by willforsyth
  • Latest reply from leicesterweb
  • This topic is resolved
  1. Right just discovered this problem now not sure if anyone has had a similar issue and if they did how they resolved it.

    I have made a child theme of thematic and used this function to add a new sub menu.

    ///////////// sun menu instert below header//////////////////////////////////////
    
    function sub_menu() { ?>
    <div class="menuwrapper">
    <div class="menu2">
    
    <ul>
    <li><a href="web.html">:Web</a></li>
    <li><a href="graphics.html">:Graphics</a></li>
    <li><a href="print.html">:Print</a></li>
    <li><a href="logo.html">:Logo</a></li>
    <li><a href="illustration.html">:Illustration</a></li>
    <li><a href="branding.html">:Branding</a></li>
    </ul>
    </div>
    </div>
    <?php
    
    }
    add_action('thematic_belowheader', 'sub_menu');
    
    ////////////////////////////////////////////////////////////////////////////

    Everything has worked fine until I activated the permalinks on my wordpress themes.

    When this is activated and you navigate through the wordpress section of my site then navigate to the sub menu inserted via this function instead of removing the permalink amd insterting the .html link it adds this to the end of the permalink thus making the link invalid.

    I.E

    www.willforsyth.co.uk.about (about being the permalink)

    Click on the link (web.html) created by the function it comes out as this

    www.willforsyth.co.uk/about/web.html

    instead of removing the permalink and making the link this

    www.willfrosyth.co.uk/web.html

    to make matters even more complicated it only adds the link to the end of the permalink when you click from the page thats created the permalink to the none wordpress page associated with the site.

    Has anyone had this issue before. Its working at the moment with permalinks deactivated but I want to have the title of the permalink activated for SEO reasons.

    Any ideas?

    Posted 12 years ago #
  2. I have run into this issue before and the best solution in my opinion would be to not mix a CMS like WordPress and static html files in the same directory. There are many more benefits for SEO to having one cook(CMS) in the kitchen rather than mixing WordPress with static html.

    Why not learn how to manage your "whole" site with WordPress. Create pages in WordPress and import the content into them.

    -Gene

    Posted 12 years ago #
  3. Thanks

    I will try putting the files into another directory and linking from there. See if that works.

    I was planning on making my whole site powered by wordpress but I couldnt work out how to have multiple style sheets for the two different sections.

    One content area is bigger than the other.

    So decided to make it live for the time being till I get time to figure it out.

    Posted 12 years ago #
  4. look here for a tutorial on how to switch stylesheets between pages using Thematic:

    http://programming.thematic4you.com/2010/01/how-to-use-a-different-layout-for-a-certain-page/

    Posted 12 years ago #
  5. Thanks will try this out.

    Posted 12 years ago #
  6. depending on what you are doing, you might need custom page templates :

    http://wptheming.com/2010/03/custom-page-templates-thematic/

    also i found that the Custom Post Template plugin lets you do exactly the same thing for Posts... which i really think ought to be in the core functionality.

    but as far as you links... if they are top level pages then you could use <a href="/about.html"> you are missing a backslash... so the links as you have them are always relative to wherever you are now... whereas w/ the backslash they are always relative to the root directory.

    what do you have set for permalinks? i am fairly certain that w/o a plugin, wordpress pages never get a trailing .html which is another reason your links might be breaking.

    but i agree w/ gene... get those pages into WP and save yourself future headaches.

    Posted 12 years ago #
  7. Thanks Hilgatheviking putting the slash before the link worked a treat. thanks alot.

    yeah I need to build the whole thing in wordpress.

    But useful if anyone ever has to add a blog onto a already existing site solution found.

    Thanks again

    Posted 12 years ago #
  8. leicesterweb
    Member

    Hi all,

    I am building a new Wordpress site at http://www.kellyhainsworth.com/new/.

    I have nine pages which I want in my tabbed navigation - so far it's been a breeze.

    However, when I switch permalinks on, i get an error when I click on 'Reflexology' and it goes to http://www.kellyhainsworth.com/new/reflexology/. How can I get the tabs to go to the correct URls - as they do now - but display the content?

    I want http://www.kellyhainsworth.com/new/reflexology/ to display http://www.kellyhainsworth.com/new/?page_id=5.

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.