I need your expertise on a problem I encounter on wordpress:
I have a main menu that has links with anchors like:
Custom page + #IDANCHOR
Everything works very well on the homepage and on the children's pages like :
https://nomdemonsite/pagex
But as soon as I'm on a page one level down, the links don't work as soon as they have an anchor:
https://nomdemonsite/pagex/subpage
If I remove the anchor ( #IDANCHOR) from the url the links work everywhere...
Does anyone have any idea why, please?
I tried to load all the js on the site on this page which is different since it brings up a 'portfolio'.
Here is the site in question:
on this url everything works
https://dev.cinqsixproduction.com
The problem appears here:
https://dev.cinqsixproduction.com/cases/reportages/
I tried to dig around, tried to force the bonds, but I couldn't help it.
Would you have an idea before I try to tamper with the theme code please? :)
Thank you all for your help,
Have a nice day!
gl hf !
Related
Is it possible to embed a certain portion of a site into a wordpress page? For example, If I want to embed stackoverflow to my site, and be able to scroll only to a predermined feel how would I accomplish this?
I tried using
<iframe src="http://www.example.com"></iframe>
But that only shows a tiny portion and not exactly what I want it to show.
Is there a better way to mimic an embedded element of another site to even mimic the scroll so it's like its really part of the site.The page source is too much to comb through.
Hope you guys can help!
Thanks i'm still a noob.
I have just started this small project for a website and I thought i should use only one menu bar for the whole site, since it's kinda tedious to have to change all the links for all the pages in the menu bar.
I have found the following code for loading my menu bar:
<div id="nav-placeholder"></div>
<script type="text/javascript">
$(function(){
$("#nav-placeholder").load("navbar.html");
});
</script>
It works fine and I do get my menu, however I find that the links basically work the same as if I just had the menu on the page instead of loading it.
So for example if I am on the root directory everything loads fine, but as soon as I move up one directory the links wont work anymore.
I know this can be fixed by simply changing them, but then I would have to make more than a couple of navbars for the whole site?
Any fix around this?, hope you guys get my idea, would appreciate any help.
If you're using anything that can dynamically create pages on the fly like ASP or PHP then you could make a separate page with just the menu in and include it in each page that needs it. For example:
ASP:
<!-- #Include virtual="menu.aspx" -->
PHP:
<?php include 'menu.php';?>
I feel really dumb for not being able to see this but for some reason I can't even get the basic portion of fancybox to work on my website.
I would think it'd be a conflict but I stripped the other scripts out of it and it still wouldn't fire.I've double checked to make sure I only have jquery loading once because I've been guilty of that before so I'm not sure what the issue is.
Can someone point me in the right direction?
The site is http://southernjewlz.com and at the very bottom left under the footer is a link that says "test" that should be linked up to display the logo in a popup.
So, I have a dotNetNuke site that was developed by someone else. These developers are not available to respond to requests as fast as I need in this case, and I have to fix something on a customer's site ASAP.
Somehow, the Home link in the site's side nav is pointing to the Contact Us page. Not sure how this was done, but I have limited access to the backend of the site (what's there is a mess anyway).
I'm looking for a way to change the URL of the Home nav item only from http://www.mywebsite.com/subdir/ContactUs/tabid/2530/Default.aspx to http://www.mywebsite.com/subdir/. I've tried swapping out the text with JavaScript to no avail. Does anyone have any ideas?
Any help would be greatly appreciated. Let me know if you need more info.
As lostPixelx suggest and seeing it kind have some hack that DotNetNuke do to the the link work. Please add the following to a javascript
$(function() {
$('#tddnn_dnnMENU_ctldnnMENU2529').click(function(){self.location="http://www.mydomain.com/subdir/"})
});
I would recommend you go in to the PAGE SETTINGS for the HOME page via the Admin/Pages (page management).
From there, on the last "tab" in the settings, towards the bottom, you can find a "URL" or "Navigation" Section, make sure nothing is selected there, then save the page settings.
Running this Jquery code will remedy your issue... but it seems like your site has some issues that you should address, not bandage with JS.
$('h1.logo a').attr('href','http://www.mydomain.com/subdir/');
I have tried to place the slider on every page on this website: http://atripathi.com
It works on the homepage, but doesn't work on any of the other pages (About, Services, etc.)
I know it's probably an easy fix, but I can't get it at the moment.
Thank you for any help or suggestions!
Looks like the original suggestion above is correct. I'm seeing slider javascript includes at the top of your homepage that aren't on the other pages.
Generally, a good way of troubleshooting is to make copies of both pages, index-c.php and about-c.php perhaps, and start removing everything that isn't pertinent to the trouble you're having (other HTML, css includes, etc.) until you get down to only the slider on the page. Once you've done that, you might notice that the one page is slightly different than the other, making it work. You can copy back and forth until it does.
The other possibility is that there's a relative path problem somewhere, because your one page is inside a folder (though I'm guessing you have a .htaccess redirect to a root folder page)? So if all else fails, move the reduced about-c.php to the root folder and see if that then works. If so, you know it's a path problem.
Hope these suggestions help.
I see that jQuery is being included on all your pages but the cycle plugin is only included on the home page. You should be able to update your template(s) to fix this.