wp_customize正在弄乱WordPress媒体库

时间:2018-04-09 15:59:13

标签: wordpress customization media

我刚在WP Customize面板中创建了自定义图像部分,在functions.php

@import url('https://rsms.me/inter/inter-ui.css');

/*fade in animasjon body */

@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.fade-in {
  opacity:0;  /* make things invisible upon start */
  -webkit-animation:fadeIn ease-in 1;  /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
  -moz-animation:fadeIn ease-in 1;
  animation:fadeIn ease-in 1;

  -webkit-animation-fill-mode:forwards;  /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/
  -moz-animation-fill-mode:forwards;
  animation-fill-mode:forwards;

  -webkit-animation-duration:0.3s;
  -moz-animation-duration:0.3s;
  animation-duration:0.3s;
}


body {

    height: 100%;
    width: 100%;
    margin-left: 2%;

}

#meny {

    background-color: #CACACA;
    position: absolute;
    width: 100%;
    height: 10%;
    top: 0%;
    left: 0%;
    padding-left: 10px;
    padding-top: 5px;
    padding-right: 5px;

}


#tekst 
{
    top: 20%;
    font-family: 'Inter UI', 'sans-serif';
    font-size: 30px;
    position: absolute;
}

.dropbtn {
    background-color: #89cff0;
    color: black;
    padding: 16px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    font-family: 'Inter UI', 'sans-serif';
    border-radius: 3px;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #89cff0;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Inter UI', 'sans-serif';
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #6599b2;
}

#menyknapp1 {

    position: absolute;
    left: 3%;
    top: 10%;
    padding: auto;

}

#menyknapp2 {

position: absolute;
left: 20%;
padding: auto;
top: 10%;
}

#tekst {

    margin-left: 18px;
    font-size: 18px;
    line-height: 25px;
    position: relative;
    padding-top: 

}

#bilde1 {

    position: absolute;
    left: 18px;
    width: 600px;
    height: 400px;

}

现在,媒体库只显示列表视图(网格视图随着加载程序滚动而挂起),当我在媒体库中上传图像时,它说&#34; // Kuvaesitys&#34;在&#34;最大上传文件大小:64MB&#34;它在蓝色栏​​中表示&#34;嘎吱嘎吱......&#34;。

在自定义视图中上载图像时,它会显示以下错误消息:&#34;上载时出错。请稍后再试。&#34;

我的猜测是,上面的php中有一些东西可以做到这一点,但我无法找到答案。

0 个答案:

没有答案