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
-
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,
ArtYou 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
would this also work for clicking on a circle/post?
Nope, separate issue.
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.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
- Go to the “Custom Fields” tab: http://snag.gy/afDU3.jpg
- Press the “Create Custom Field” button: http://snag.gy/7pgdF.jpg (ignore the custom fields in the screenshots I have already)
- Select the “Create Text” button: http://snag.gy/NcUAP.jpg
- This screenshot, http://snag.gy/ckgaW.jpg , will outline the areas you need to fill in from the following steps:
- In “Label” enter “Custom Link”
- In “Name” enter “custom_link”
- In “Default Value” enter “http://”
- Under “Associations” tick the “post” checkbox
- 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
- Go to the “Custom Content Types” part of the dashboard again
- Underneath “post” press the “Standardize Custom Fields” link: http://snag.gy/qgewM.jpg
- 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
Artdo 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
Your website shouldn’t be any different yet.
Do you have a “content-home.php” file in your Child Theme?
Not yet 🙂
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
- The topic ‘Link to second blogsite’ is closed to new replies.