I'm using the Wordpress CMS to make a site but I face a problem with Wordpress' url create.
When I click on page link, the page url looks like this:
http://example.com/page/?ID=603#
After some time the page url looks like this:
http://example.com/page/?ID=603#.USY_Xx1HI1M
I can't understand how to add this code .USY_Xx1HI1M at the end of the url.
So guys, if you have any solution for this problem, please share with me.
There is a two ways to remove the hash tag from the URL.
1) In the script, there is a property which control to display hashtag or not. Just set 'hashAddressBar: false'
2) When generating a code for the button there is a radio button saying 'Track when users share by copying your URL' so just uncheck this and it wont generate hast tag for URL.
If you used addthis, double check that you have set data_track_clickback and data_track_addressbar to false, you can read more here: https://www.addthis.com/academy/removing-hashtags-anchors-and-tracking-codes-from-your-urls/
Related
So, for the most part my website works perfectly fine, except for when you click under 'Services' (/what-we-do/property-acquisition/) and try to go into Contact (it tries to link to a what-we-do/property-acquisition/contact instead of just /contact/). Only that part specifically doesn't work for some reason? Thank you in advance to anyone that can solve this for me
https://staging.highmarkschools.com/what-we-do/property-acquisition/
I don't know why this is the only page that doesn't click into Contact, and that's the only part of the header that doesn't link?
The link to that page is just href="contact" which is a relative link. It doesn't break on only one page, it breaks on all pages that aren't direct children of home. It should be changed to href="/contact/", where the leading forward slash makes the URL absolute.
Also, ideally you'd be building that menu using WordPress's menuing system which, unless you manually enter URLs, would take care of this for you.
it is because your button has been directed to the wrong link. You need to make sure the link in your button has the correct path.
I have a Website of Wordpress In My Website When I click on any URL After complete Loading Content Page Some Codes Automatically Add on Permalink
For Example
http://example.com/wow-amazing/ Correct Link This Link Is Fine
After Complete Page Loading
http://example.com/wow-amazing/#.WfB5iI-Czcs
How Can I Remove #.WfB5iI-Czcs this Automatically Added Code From Permalink
Thanks In Advance
That part with # is generated at front side, so it actually doesn't affect you permalink. So there is no problem if you see that.
And actually it doesn't come from permalink, it is generated by some plugin's javascript. (for example AddThis generates such anchors, if you use AddThis, then the reason is AddThis)
I created a simple webshop with PHP. The header, footer and navigation is fixed and when I click through the navigation only the main area changes and the link changes too (for exaple index.php?page=shop).
Now I want to use pagination for the articles. Every time I click on another page it will change the link too (for example index.php?page=shop?id=5). The id is the page number. But this doesn't work in PHP. It always links me to the start page.
Does anybody know how to do this?
There are only one single question mark in URL in place of two when u pass more than two parameters in URL it should be
index.php?page=shop&id=5
Like arkascha said , index.php?page=shop&id=5 then you get this parameter with $_GET['id'] , check if isset and load next pag.
iam using greybox in my site, and i call it like:
My Page
But when i point my mouse on the link, the url is visible in the browser statusbar.
I dont want this, as iam intending to show a private page to the user, which is unique to each user, and users must not be able to view others' pages, which can be possible if they know the url.
Is there a way to hide the url of my greybox page?
Or a way to invoke greybox the other way?
See the examples in the advanced usage documentation for invoking Greybox without using a HTML link:
http://orangoo.com/labs/greybox/advance_usage.html
Try putting this in the tag:
onMouseOver="window.status='Greybox';"
Replacing 'Greybox' with the text of your choice (the single quotes are still necessary).
Here's the situation.
I have a site where clicking hyperlinks within a certain div makes a jQuery function get the content of a div from a separate page. Because of this, the URL don't change. I need it to change as well as writing an entry in history.
My pages are setup like this (not sure this is the smartest way of going though)
access.php (main logon)
new-user.php
forgot-pass.php
index.php
controlpanel.php
etcetc. Now, all of these pages are reachable on their own and are mainly identical and all contain a div called "container". When clicking links, the content from this div gets erased and the content from the coresponding div (container) gets loaded from the file of the URL (href). I'm terrible at explaining..
So basically, what I need is some javascript that picks up the href link address and just pastes it in the url bar at the same time as it creates an entry in history so the back and forth buttons work.
I plan on extending this in a while as well, translating query strings as well. But there are a few constant static pages I need to take care of first. Any help would be very appreciated! :)
You are not allowed to change the entire URL by JavaScript but you can use URL hashes. I recommend you the browser history plug-in. You can simply register a handler to react on URL changes and load your corresponding content via ajax.
Have you looked at the jquery address plugin? Look at the examples. Is this similar to what you want?
It's not possible with "normal urls" (we must wait for a new generation of browsers...)
But there is a "trick": playing with anchors.
A link like "same_page.php#anchor" does not reload the page, but act on both the history and the adress bar.
So, if instead of having url like "page.php?param=lorem", you could have "page.php#param=lorem", you have your solution :)