【问题标题】:Is this achievable on wordpress?这在wordpress上可以实现吗?
【发布时间】:2020-03-14 01:05:47
【问题描述】:

尝试制作一个类似这个主题的网站https://www.beefitswhatsfordinner.com/,这在 WordPress 上可以实现吗?

我试图避免代码,因为我将使用插件,但以下是我目前尝试过的。

平台是wordpress,页面构建器是elementor,这个HTML sn-p在一个elementor块的HTML标签里面

<sectiona>
<ul>
    <li>
        <a>
            Button 1
        </a>
        <img src="/wp-content/uploads/2019/11/1.jpg">
    </li>
    <li>
        <a>
            Button 2
        </a>
        <img src="/wp-content/uploads/2019/11/2.jpg">
    </li>
    <li>
        <a>
            Button 3
        </a>
        <img src="/wp-content/uploads/2019/11/3.jpg">
    </li>
    <li>
        <a>
            Button 4
        </a>
        <img src="/wp-content/uploads/2019/11/4.jpg">
    </li>
    <li>
        <a>
            Button 5
        </a>
        <img src="/wp-content/uploads/2019/11/5.jpg">
    </li>
    <li>
        <a>
            Button 6
        </a>
        <img src="/wp-content/uploads/2019/11/6.jpg">
    </li>
</ul>

<style>
 sectiona{
 position: absolute;
 width: 100%;
 height: 100vh;
 }

ul{
width: 100%;
background: rgba(0,0,0,.2);
box-sizing: border-box;
-moz-column-count: 2;
-moz-column-gap: 2px;
-webkit-column-count: 2;
-webkit-column-gap: 2px;
column-count: 2;
column-gap: 2px;
text-align: center;

 }

 ul li
 {
 list-style: none;
  } 

 ul li a
 {
 display: block;
 top: 0;
 text-align: center;
 line-height: 50px;
 color: #fff;
 font-size: 24px;
 cursor: pointer;
 transition: 0.5s
  }

 ul li a:hover
 {
 background: #ff0;
 color: #000;
  }

 sectiona img
 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -2;
transition: 1s;
opacity: 0;
 }

ul li a:hover + img
{
opacity: 1;
 }
</style>

【问题讨论】:

  • 嗨,乌尔瓦亚姆。我们在这里主要回答有关代码的直接问题。您需要向我们证明您之前尝试过,我们可以从那里帮助您。
  • 好吧,我已经尝试使用带有 html 标签的 elementor 在 wordpress 中复制它
  • @KGreene 现在请看,我用代码编辑了帖子

标签: asp.net wordpress wordpress-theming themes


【解决方案1】:

Wordpress 只是一个 CMS。

所以你可以用它构建任何网站,这里最难的部分是前端。

您可以扩展posttypes并添加posttypes,添加类别以实现更复杂的内容结构。

【讨论】:

  • 是的,我知道,但是有没有办法复制网站的主页或类似的主题,
猜你喜欢
  • 1970-01-01
  • 2021-10-24
  • 2010-09-22
  • 1970-01-01
  • 1970-01-01
  • 2011-08-10
  • 2011-08-10
  • 2011-10-31
  • 1970-01-01
相关资源
最近更新 更多