• Resolved kbutcher

    (@kbutcher)


    Hi all,

    I am new to WordPress and jointly creating a new website for my school.

    I was wondering if anyone knew how to help me with a problem I have. The buttons underneath the top banner seem to be the pages and I was hoping someone could please tell me how I could change them from permalinks to external links?

    I also would like the buttons to spread across the whole page as at the moment they seem to be left aligned.

    Any help would be brilliant.

    The web address is http://www.newporthigh.co.uk

    Thanks in advance,

    Kathy

Viewing 12 replies - 1 through 12 (of 12 total)
  • as you add pages they will spread evenly acrross the top navbar
    if you want to change their behavior – look in your theme’s header.php

    as for redirecting page navs – you will need a plugin
    http://www.dailyblogtips.com/gocodes-url-redirection-plugin-for-wordpress/
    there are others you can google

    Thread Starter kbutcher

    (@kbutcher)

    Thanks for that! I will download the plugin.

    Thanks for your help!

    Kathy

    Thread Starter kbutcher

    (@kbutcher)

    Hi, I don’t think I explained it very well – I am not sure this is the correct plugin for me.

    Basically, I don’t want the buttons along the top to be links to internal pages, I would like them to link to external sites. At the moment it seems to be forcing me to use permalinks and I don’t know how to change that.

    Thanks again,

    Kathy

    hi,
    this is the plugin I use to redirect but I usually don’t recommend it as most folks don’t install it correctly
    http://codex.wordpress.org/User:MichaelH/Redirectify

    basically C & p page and save as redirectify.php
    upload this file to your plugins folder
    activate it
    create a blank page with title of your choice
    in custom field below post editor, input redirect
    in value field, input desired url to redirect to
    save custom field value
    save post
    that’s it

    HaHa!! I ran into this problem recently as im still new to the way wp uses php. here was my dilema-i\I wanted a page that only shows videos that I post. The problem is if you create a page through the control panel it only creates a single post page with there pre programmed link to it. In other words you create a PAGE not a page which is different from the front blog page. It creates a page that only allows one post and automatically creates one tabbed navigation link at the top of the page. You DON’T need a plugin to do what your trying to do. What you DO need is a little understanding of the wordpress functions and do a little coding of your own. If you want to spread the nav links across evenly which wordpress automatically and you don’t like how it looks then target the code with CSS and style them how you would like to-ex. adding some padding or changing the margins etc… As for external links its a little more complicated. If you know html then you know how to create a link. The next step is the link location. Here’s my code for changing the link of a page created link to my own link, in this case redirect it to a category link: `<?php
    // Get the ID of a given category
    $category_id = get_cat_ID( ‘Video’ );
    // Get the URL of this category
    $category_link = get_category_link( $category_id );
    ?>

    <div class=”page_item”>“title=”Video”>Video</div>`

    This of course is a link to an internal page but if you wanted to link to an external page just ignore the first two lines of code and use the third replacing the php code with the location of your link. Hopefully this helps. Let me know if this works!

    I think what kbutcher is after is actually getting rid of the page links and putting in links to external sites…

    In that case, you need to open your header.php (for your theme), find wp_list_pages() , replace that with wp_list_bookmarks(), and then go ahead and add links via the admin section (it’s just above pages in the left-hand menu)…

    Related:
    http://codex.wordpress.org/Template_Tags/wp_list_pages
    http://codex.wordpress.org/Template_Tags/wp_list_bookmarks
    http://codex.wordpress.org/Stepping_Into_Templates
    http://codex.wordpress.org/Blog_Design_and_Layout#Themes_and_Templates

    Thread Starter kbutcher

    (@kbutcher)

    Hi all, Thanks I will have a go at your suggestions this morning! Thanks for all your suggestions – I will let you know!

    Thanks again,

    Kathy

    Thread Starter kbutcher

    (@kbutcher)

    Hi, I was hoping for some advice. I changed the code from wp_list_pages() to wp_list_bookmarks () and it simply removes the buttons I already had at the top header and replaces it for the word blog that isn’t even a button. I just want buttons along the header but it is seeming impossible. Maybe I need a new theme altogether? Thanks again for your help!

    Thanks,

    Kathy

    see my last reply :>)

    Is that not effectively creating a whole post just to make a link?
    Is this not what the blogroll links are for?

    :-s <—- that’s a confused smiley.

    🙁 <—- that’s a sad one for not having proper smilies..

    Is that not effectively creating a whole post just to make a link?

    if I understood, he/she wants the navbar Page links to go off site
    so it would be creating a page title that redirects off site

    Yeah i just thought it seemed a little overkill just to link offsite..

    If it does what the job though… 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Changing Buttons from Permalinks’ is closed to new replies.