Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I'm taking over a project in Wordpress that was done by some other developer and going through it I realised that he has adjusted some premade theme and edited many areas of it.
And it works fine, BUT there are some tags appearing on the homepage and messing up the website structure in IE8.
These links look simple, like this: in Chrome's Inspect Element or Firebug, but when i load the source, they look like this:
<a href="http://www.google.com" target="_blank" rel="dofollow">
I tried removing ALL the scripts that are loading, all at once or one by one, but it persisted.
This is the website, so if you have any idea why this is happening, it would be awesome.
http://basicallyfood.implementek.net/demo/
Thanks
I guess the google.com links are only place holders and the developer forgot about them... just look inside your source code of the template, if you can't find it, do a grep search:
grep -lir "google.com" *
if it wont find anything, search for the string in your database, especially in wp_options
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Just had some questions I hope someone can shed some light on. I am looking to restrict certain data on a WordPress page to certain users, there are lots of plugins that offer restricted content in some ways, but I am looking to only restrict very specific content on that page, not the whole page. Is there something I am missing or something I should look at?
Just to give some more information, we're working with custom post types and on one of the pages that show the custom pages, some of the data that is being pulled out (within appearance->editor, not actually the WordPress page) so I will need to be able to have some kind of access to if($userlevel == "something") {}.
Many thanks
Nevermind It is actually quite easy, check the userlevel and restrict content, perhaps add a new role:-)
Think you can write simple plugin for this task or modify current theme. May be section [a link] http://codex.wordpress.org/Function_Reference#User_and_Author_Functions help you. Wordpress Codex have a lot of information and you find what you need to solve your task. As i understand you need to use functions like user_can, current_user_can, current_user_can_for_blog or get_role and add_role inside wordpress loop.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have created my own wiki using mediawiki. Now I would like to know if it is possible to dynamically include articles from an external wiki.
For example, if my wiki does not contain an article about the topic "potato" and a user visits the page "mysite.com/wiki/potato", I would like to display on this page the potato-article of wikipedia.org (http://en.wikipedia.org/wiki/Potato).
Is there a php solution (using the wikipedia-api) which can accomplish this?
There are several possible approaches. Here are some rough ideas:
With the ExternalData extension you can pull in data from Wikipedia's API.
The Anysite extension can put any other page in an iframe. You would probably want to use a rendered version of the page, and somehow add back the CSS to make it look good.
Both of these don't solve the issue of someone landing on a page that does not exist yet. You can take a look at the code of the Special404 extension for some ideas to get started. And if you start hacking something yourself you probably don't need the above extensions anymore.
But you should be aware of the problems with what you want to do. Are you sure you want to have all URLs that work on Wikipedia be valid URLs on your wiki? Are you okay with creating heaps of duplicate content?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
http://www.aliexpress.com/item/NEW-7-Android-2-3-256MB-DDR2-4GB-NAND-Flash-7-inch-tablet-pc/498159194.html - I got this link
Here you can see a buttons: bundle, color
If you click some of them the price will change, but the question is how can I parse that behaviour to my page via php?
The problem is that I can't understand where is javascript code that executes this, or how to find it, maybe someone got ideas about that?
Inspecting that page's source code I can see that the skuProducts variable in javascript contains this information encoded into a JSON-string. You can't really run this javascript code on your webserver, so you'll have to devise another way to get that variable's value - and then you can use json_decode() to get the contents.
Note that changing the amount of items results in an AJAX call to a shipping costs calculator. You could probably simulate that, but I'm not sure that webshop would like that (and it might be illegal).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I'm working on a website that was originally built using codeigniter. It's a mess on the back end and there's no identifiers to anything really. I've recently changed a banner (header.php) and edited the style to fit as required. I added a simple img source= and a href= into the header.php and it seems to be displaying fine on the homepage. However once I navigate away to other pages the img source isn't displaying whilst all my other changes are?
The a href link remains with the class but the image is displaying as broken.
I've checked all the locations etc and it's all pointing to the correct place?
Any ideas?
I understood that you have given relative path to your image directory. You have to prepend base_url in src tag as follows
<img src="<?php echo base_url('/path/to/image.jps');?>" alt="Image"/>
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Hello there fellow stack exchange members hope your having a great day. Basically i picked up a project I never finished and started working on it. So far so good. Except until right now there's a CSS element that is giving me trouble.
Basically I have a menu bar with "Login" and "Register" if you inspect the code on Google chrome and select "menu" div the little highlight box shows up where it supposed to be but You cant see actually see it.
But in the "Matched CSS rules" if I uncheck "Float:right" and then check it again the element goes to where its supposed to go, which is confusing me right now.
Could someone take a look at it for me. I'm currently developing on a throwaway domain before i actually transfer it to the real domain
Looks like when you re-enable the float it's getting re-calculated in the DOM due to re-ordering. I think the root cause is that you have the div in the breadcrumb div instead of up a level in the homebar div.