use anchor tag to open a static page in worpdress - anchor

I have one page site which have blog section, and a blog page which will include all blog posts. When I click in particular posts read more button, it redirects me to single.php page. But when I click on View all blog post button , it redirects me to blank blog page with 0 comments page . I want it to redirect to blog.php page. I have already created page-blog.php for it.

Related

Add twitter share button to each blog post on tumblr

I'm working on a tumblr blog and I would like to add the twitter share button at the end of each blog post. I know how to get the button for the code and I've been able to get it on a post successfully. However I want it to be on all my post so I don't want to have to add the code at the end of each blog posts's html.
I thought I could avoid this by putting the code in my blogs html. I added in between the block:Post and /block:Post. This works for the most part, the only thing is that when I'm on my blog the link shows up on the post preview and shows how many shares my blog has had and while I'm on an individual post it shows how many shares the post has.
How can I add it such that it only shows the number of shares the post has and will be added to each post automatically.
I think this should do the job:
http://ialreadydontlikeyou.tumblr.com/post/1167220523/implementing-the-tweet-button-on-posts-in-tumblr#.U7_VW41_v_E
It needs special workaround, as you need to place many tweet buttons on the same page.

Disqus commenting system - comments are getting saved but not getting displayed after page refresh?

I just signed up for a disqus account to set it up on my website.
I registered my website URL as http://www.mydomain.com
The place that I'm implementing the commenting system is in
'/article/:post_id'
example: http://mydomain.com/article/261
In each different article ID page, I want the disqus commenting system to show. I'm currently able to post a comment, but they're not displaying when I come back to the page. They are saved as part of the overall website which I see in my disqus admin panel but they're not showing on that particular article page.
Where do I set up the URL to make this work correctly?
I solved it by using a disqus_identifier

Using Page Anchors In Primary Site Navigation

So I have a basic (Wordpress powered) portfolio site where most of the content lives on the homepage, and then I'm using a custom posts category for the featured projects, so users can click through and get more info on the project at its category-single.php page. So the idea is it's a pretty flat site in terms of structure.
So flat, in fact, that the site navigation in the header simply links to content that is all on the home page (About, Work, What, Contact are all sections on the home page that get scrolled down to when you click).
What I want to happen is when the user is on the home page, and clicks one of the top nav links, the page scrolls down to that section (no problem here - I've got this part working just fine), and then when the user is on another page of the site (think one level deep, a custom post page) if they click the header nav links it returns them to the homepage and scrolls them down to that section. I'm thinking in terms of basic url anchor structure, like http://somesite.com/page#specific_section where that link takes the user to a specific section on somesite.com/page.
However the trouble I seem to be having is with creating these url's correctly. I've written them as mysite.com#about, mysite.com#work, mysite.com#contact, mysite.com#page-top, but instead of trigging the user to go to the homepage, the browser is interpreting those links as instructions to look for those sections on the current page.
What am I doing wrong, and what is the correct way to accomplish this?
The thing I'm trying to consider additionally, is whether I need to create PHP logic that displays the links one way on the homepage, and another way on the rest of the site.
What you need to do is use the actual filenames of the pages in question, like:
mysite.com/aboutme.html#qualifications
`mysite.com/portfolio.html#ZirTech
For links to the homepage, try either using the root relative path or fully qualifying the link like so:
http://www.mysite.com/#section fully qualified
/#section relative path
You shouldn't need to implement them a different way on the homepage - just implement them properly throughout the site.
When you write the URLs as mysite.com#work, mysite.com#contact, mysite.com#page-top the browser looks for the page in question, because it is not instructed to go to another page (you need to add "/" to redirect it).
If you want them to point to the main page, set them as
mysite.com/index.php#work, mysite.com/index.php#contact, mysite.com/index.php#page-top
Maybe it is possible without index.php, but I'm a bit lazy to test now:
mysite.com/#work, mysite.com/#contact, mysite.com/#page-top

Tweet box shows counts for web page, not post

I've installed a Tweet button per Twitter's instructions here: https://dev.twitter.com/docs/tweet-button.
The issue is that if you go to the homepage of my blog, http://trevormckendrick.com you'll notice that the tweet buttons show the number of times the homepage has been shared, not the post.
An example of the behavior I want can be found # http://startupflavor.com. Notice the Tweet button counts are different on every post on the homepage.

Rails multiple facebook like buttons. Redirected link meta tags problem

I am having that problem that I got some items on a list that needs a like button.
That means I got multiple items on a page. I want to show an unique image and text when a user press like. The problem is that facebook meta tags goes in the header and it is only for the page. That means that the facebook like images are the same for all items. I have read this guide http://hillarsaare.com/multiple-facebook-like-buttons-on-one-page/ how to create multiple facebook likes with unique images and links. But my link that the user likes is a link that is been redirected in my controller to an external URL without any view.
Where should I place the meta tags? Should I create an view for my link ? How should I make an delay on the link that is been redirected?
I made a show file for my link. And but the facebook meta tags in the header, and some javascript to make the redirecet to my external link. In that way I can have multiple like buttons on a page with unique like information and images.

Resources