[英]wordpress plugin and theme css colide
I have a small problem! 我有一个小问题! Im using a Wordpress theme, and a Plugin from a real-estate system developer witch fetches data from the system..
我使用的是Wordpress主题,而房地产系统开发人员witch的插件则从系统中获取数据。
IF i use the theme the real-esate system recommends everything works smoothly. 如果我使用主题,那么Real-Esate系统会建议一切正常进行。 But i want to use a nother theme.
但是我想使用另一个主题。
The result of this is that the data fetched from the Plugin is not looking like intendend. 结果是从插件中获取的数据看起来不像预期的那样。 The Theme CSS takes over hand.. and uses the themes css on sertain elements like .li and .ul...
主题CSS接管了..并在.li和.ul等某些元素上使用主题css。
Is there a way to solve this? 有办法解决吗? I dont want to use iframes.
我不想使用iframe。 Can i eg create a div, and then apply the Plugins style.css to that div and to that div only.
我可以例如创建一个div,然后将Plugins style.css应用于该div和仅该div。 and in just that div override the css from the theme?
只是在那个div覆盖主题的CSS?
if u want to look at source and css and so on here is the link: http://hogmans.nu.temp-url.se click on "till salu".. 如果您想查看源代码和css等, 请点击以下链接: http ://hogmans.nu.temp-url.se单击“耕种”。
if u want to look where the plugin is presented correctly http://hogmans.mspecsweb.se/till-salu 如果您想查看正确显示插件的位置, 请访问http://hogmans.mspecsweb.se/till-salu
u se the problem? 你有问题吗?
looks like it is using two different css framework.. 看起来它正在使用两个不同的CSS框架。
try adding this line of code into your header 尝试将这行代码添加到标题中
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
It will fix the middle part for sure... but not so sure what it will do to your site as a whole.. 它肯定会修复中间部分……但不确定它会对您的网站整体产生什么影响。
also there is no easy fix to this other than using a theme that is powered by the newest version of twitter boostrap
or create your own custom mobile css to make those single lines into blocks again. 除了使用由最新版
twitter boostrap
提供支持的主题,或者创建自己的自定义移动CSS再次将这些单行变成块之外,没有其他方法可以轻松解决此问题。
You have a few options: 您有几种选择:
<style>
tags to the header. <style>
标记添加到标头也是如此。 **If you are using a theme that you did not build on your own, your theme might update. **如果您使用的主题不是自己构建的,则主题可能会更新。 Any changes you make to the theme's files will be overridden.
您对主题文件所做的任何更改都将被覆盖。 You will need to create a child theme to add or edit any of the theme's files.
您将需要创建一个子主题以添加或编辑该主题的任何文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.