I have wordpress site: www.example.in
Site is working fine,when I click at any other link it works but no sub urls comes in browser
for example if click at "Blog" blog page loads but URL not changing in Browser's url box.
I checked out the website.. the problem here is that you have a frame on your page.. and that frame loads the content from securespin.in.. So basically the main page that is opened in the browser is the index page of linksmart.in.. which doesnot change on clicking on any of the links.. what changes is the content of the frame on this page (content from securespin.in).. hence everything works perfectly but the browser URL wont change.. cuz the page is still the same.. hope it makes sense..!!
If you want the URLs to work for linksmart there are quite a few options. First and simplest will be to host the same website as securespin.in on the linksmart server and let go the Frame..!!
Second option would be to just the change the hash in the URL not the URL as such.. so your URL can be www.linksmart.in#Blog.. for that you can use the following code on the click of the links on the pages on securespin.in
document.parent.location.hash = "Blog";
Related
I have a page called customers in next.Js and another page [id], so it generates the routes /customers and /customers/id.
I wanted to map a list of customers in /customers and if I click on a customer in that list I will be redirected to /customers/id with the information of the customers, this logic is working very well, the problem is when I leave the /customers/id page, for some reason it messes up with some images in my other pages.
I have 2 examples:
example 1: when I try to back to customers page from customers/id it doesn't find my background image from that page, but if I refresh the page it renders normally with the background image.
Example 2: I have a function to validate jwt tokens in a hook and if this token is expired it redirects to the login page, when it does that redirect from customers/id page it doesn't find the background and icon images, but again, if I refresh the page it renders normally, trying to understand that problem I open the console in chrome and realized that when I am redirected from customers/id it changes the request url of the images, all my images are located in public/img, so in my imgs tag I just put '/imagename.jpg' in source, with that all my requests to that images should be "http://localhost:3000/img/imagename.jpg", but with the customers/id redirect that request transforms into "http://localhost:3000/customers/img/imagename.jpg", and for that reason I get the 404 code.
Can someone help me with this issue? Thank you guys for the attention.
SOLVED - I just forgot to put /img in my source, it was img/imgname and I just changed to /img/imgname
Instead of having the link opened in a new tab I would like to the link to be opened in an iframe that's on the same page.
Example:
I have my front page with an iframe on it. If I click on the menu items i would like to have the urls loaded in the iframe.
I can't seem to find an answer for this.
Alter the iframe in your front page as below
Make sure the iframe contains a name attribute (name="main-section")
<iframe name="main-section" src="home.html"></iframe>
In your menu items make sure the target attribute redirects to main-section (target="main-section"). This is an important step.
Example:
I am pretty sure you can achieve the above steps in wordpress.
I have used Configuration|Site Information|Default Front Page to designate node/55 as my front page.
How can I create a menu linking to the original front page, i.e. the one with the list of articles?
If I link to <front> it goes to node/55.
P.S.: I have been able to simulate this by enabling the frontpage view, but, if possible, it would be more efficient to just link to the original front page URL.
As far as I know the original homepage is equal to /node (for clean URLs) or ?q=node. Link to either of these and you should be fine.
I have a page that contains a lot of images, but it's a page designed to be in an iframe inside an other page. I dont want this page to be indexed to prevent visitors to be stuck in this iframe, but I want to make index all the pictures inside the iframe.
The iframe is a picture slider that opens over the page, there is previous/next buttons and the picture. I find bad to put in the meta robots "NOINDEX, FOLLOW" and to make a link on the pictures to the originial picture... because the picture is already fullscreen. My other option is to put a link back to the parent page, but because the iframe is opened over the page, it would be bad to have a page opened over the same page. what do I do ?
If I do not index this page, only my thumbnails will show up in google image. do you hate thumbnails in google images ?
I finally indexed the page and put a link back to the source page using a javascript condition : if the page is not opened in an iframe, show the link to go back to the previous source page.
Through settings I set to show one static page (lets say I called it "static") as index page. And a blog page as a second page whch you can reach via menu. The static page is displayed just fine, but when I want to open any page with blog template (dynamic content) I get just the name "static", username and the date, and its displayed only once. Nothing more. I dont have an idea of where I could look for the problem.
Which wordpress version you are using?
Hope you done it like this(Double check it).
Settings > Reading > Front Page Display.
Then you select the "A static page" radio button. And sets both "Fron Page" and "Post Page".
Also for further investigation, can you provide the site link?