WordPress.org

Support

Support » Themes and Templates » [Resolved] Link to second blogsite

[Resolved] Link to second blogsite

  • hi,
    i am working on a companion blogsite, to my spun-child site. i want the visitor to my spun-child site when clicking one particular circle (named “blog”) to be sent to the companion blogsite (a complete different url ) to its homepage. also, clicking on the menu at the top name “blog” would also take visitor to companion site.
    hope this is clear.
    thanks,
    Art

Viewing 15 replies - 1 through 15 (of 43 total)
  • Andrew Nevins
    Forum moderator

    @anevins

    clicking on the menu at the top name “blog” would also take visitor to companion site.

    You can set up a menu in the dashboard under Appearance > Menus and then you can specify a custom link http://codex.wordpress.org/Appearance_Menus_Screen

    thanks –
    ok
    i have a menu called “blog” already –

    do i have to create code?

    would this also work for clicking on a circle/post? or is this a separate issue

    thanks again,
    Art

    Andrew Nevins
    Forum moderator

    @anevins

    You don’t have to create code to change your menu item’s link, you go to the dashboard under Appearance > Menus and there you use the “Links” section: http://snag.gy/A0RqG.jpg

    Andrew Nevins
    Forum moderator

    @anevins

    would this also work for clicking on a circle/post?

    Nope, separate issue.

    Andrew Nevins
    Forum moderator

    @anevins

    i want the visitor to my spun-child site when clicking one particular circle (named “blog”) to be sent to the companion blogsite

    What I think you’ll have to end up doing here is installing this plugin: http://wordpress.org/plugins/custom-content-type-manager/

    Then creating a Custom Field that’s present when you edit any of your posts.

    That Custom Field will hold the URL that you want the post to go to.

    Then in the code for the Home page you just need to write an extra bit that checks to see if that Custom Field has been filled out and if it has the code should use that URL. Otherwise it’ll default to its post URL.

    okay

    1) created link from website 1 to companion site 2 (blog) thanks !!! works yay.

    2) installed above CCTM – now will try to figure what you wrote previously pasted below:

    “Then creating a Custom Field that’s present when you edit any of your posts.

    That Custom Field will hold the URL that you want the post to go to.

    Then in the code for the Home page you just need to write an extra bit that checks to see if that Custom Field has been filled out and if it has the code should use that URL. Otherwise it’ll default to its post URL.”

    Not sure – i know what to do here – “write an extra bit checks…….URL”
    but i will try to see what CCTM is all about.

    Andrew Nevins
    Forum moderator

    @anevins

    Then creating a Custom Field that’s present when you edit any of your posts.

    In the Custom Content Types part of the dashboard: http://snag.gy/tCyzd.jpg

    1. Go to the “Custom Fields” tab: http://snag.gy/afDU3.jpg
    2. Press the “Create Custom Field” button: http://snag.gy/7pgdF.jpg (ignore the custom fields in the screenshots I have already)
    3. Select the “Create Text” button: http://snag.gy/NcUAP.jpg
    4. This screenshot, http://snag.gy/ckgaW.jpg , will outline the areas you need to fill in from the following steps:
    5. In “Label” enter “Custom Link”
    6. In “Name” enter “custom_link”
    7. In “Default Value” enter “http://”
    8. Under “Associations” tick the “post” checkbox
    9. Press “Save”: http://snag.gy/yiGvm.jpg

    Now you should see your Custom Field that you’ve just created (not on the Webpage but in the dashboard): http://snag.gy/RlZDD.jpg

    To make that Custom Field appear when you edit a post

    1. Go to the “Custom Content Types” part of the dashboard again
    2. Underneath “post” press the “Standardize Custom Fields” link: http://snag.gy/qgewM.jpg
    3. Now edit a post and you should see your “Custom Link” field you’ve just created: http://snag.gy/UlO7N.jpg

    You don’t have to fill in this “Custom Link” field for every or any post, it’s only for the circle that you want to link to something else.

    Note that this does not change the website yet

    wow – thanks again

    what do you mean “note that this does not change the website yet” ?

    do i type the link to the other website in the “custom link” ?

    thanks
    Art

    Andrew Nevins
    Forum moderator

    @anevins

    do i type the link to the other website in the “custom link” ?

    Yes, for the post you want to change the circle’s link (each circle represents a post).

    what do you mean “note that this does not change the website yet” ?

    You won’t see anything different on your home page for example.
    We’ve only done these 2 steps that I outlined above:

    Then creating a Custom Field that’s present when you edit any of your posts.

    That Custom Field will hold the URL that you want the post to go to.

    what next?

    i typed in url – but it doesn’t go to other website

    Andrew Nevins
    Forum moderator

    @anevins

    Your website shouldn’t be any different yet.

    Andrew Nevins
    Forum moderator

    @anevins

    Do you have a “content-home.php” file in your Child Theme?

    Not yet 🙂

    Andrew Nevins
    Forum moderator

    @anevins

    Copy the “content-home.php” file from the Spun theme and paste it into your Child Theme folder.

    Then replace all of that file’s code with the code from this PasteBin page: http://pastebin.com/rRzNhXbu

Viewing 15 replies - 1 through 15 (of 43 total)
  • The topic ‘[Resolved] Link to second blogsite’ is closed to new replies.