【html一页模板到wordpress转换】我非常需要你的帮助, 我在办公室得到了一个wordpress项目, 客户选择了一页html模板, 并要求将其转换为wordpress。我知道如何将html转换为worpdress普通主题, 但由于主题只有一页, 而多个div充当页面。我不知道该怎么做。
很抱歉, 因为这不是平台化方法, 但是我需要一个入门点。
主题标记如下
<
!--Home Page
=============================-->
<
div id="home" class="item">
<
!--<
img src="http://www.srcmini.com/assets/img/2.jpg" alt="The Spice Lounge" class="fullBg">
-->
<
div class="clearfix">
<
div class="header_details">
<
div class="container">
<
div class="header_icons accura-header-block accura-hidden-2xs">
<
ul class="accura-social-icons accura-stacked accura-jump accura-full-height accura-bordered accura-small accura-colored-bg clearFix">
<
li id="1">
<
a href="http://www.srcmini.com/#" class="accura-social-icon-facebook circle">
<
i class="fa fa-facebook">
<
/i>
<
/a>
<
/li>
<
li id="2">
<
a href="http://www.srcmini.com/#" class="accura-social-icon-twitter circle">
<
i class="fa fa-twitter">
<
/i>
<
/a>
<
/li>
<
li id="3">
<
a href="http://www.srcmini.com/#" class="accura-social-icon-gplus circle">
<
i class="fa fa-google-plus">
<
/i>
<
/a>
<
/li>
<
li id="4">
<
a href="http://www.srcmini.com/#" class="accura-social-icon-pinterest circle">
<
i class="fa fa-pinterest">
<
/i>
<
/a>
<
/li>
<
li id="5">
<
a href="http://www.srcmini.com/#" class="accura-social-icon-linkedin circle">
<
i class="fa fa-linkedin">
<
/i>
<
/a>
<
/li>
<
/ul>
<
/div>
<
div class="call">
<
div class="home_address">
#12 FIFTH MAIN STREET, <
br>
NY 10307, USA.<
br>
<
/div>
<
i class="fa fa-phone">
<
/i>
&
nbsp;
&
nbsp;
+1 123 456 7890
<
/div>
<
/div>
<
!-- Mainheader Menu Section -->
<
div class="mainheaderslide" id="slide">
<
div id="mainheader" class="header">
<
div class="menu-inner">
<
div class="container">
<
div class="row">
<
div class="header-table col-md-12 header-menu">
<
!--Logo section -->
<
div class="brand">
<
a href="http://www.srcmini.com/#home" class="nav-link">
The <
span>
Spice <
/span>
Lounge<
/a>
<
/div>
<
!--// Logo section -->
<
!-- Home Page Menu section -->
<
nav class="main-nav">
<
a href="http://www.srcmini.com/#" class="nav-toggle">
<
/a>
<
ulid="home_nav" class="nav">
<
li>
<
span class="nav-link selected1">
Main<
/span>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#about" class="nav-link">
About<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#" class="nav-link">
Menu<
span class="sub-toggle">
<
/span>
<
/a>
<
ul class="submenu">
<
li>
<
a href="http://www.srcmini.com/#" class="panel">
Menu 1 <
i class="pull-right fa fa-angle-right direction">
<
/i>
<
span class="sub-toggle">
<
/span>
<
/a>
<
ul>
<
li>
<
a href="http://www.srcmini.com/#menuwithoutimage2" class="nav-link">
Menu without image2<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#menu1" class="nav-link">
Menu without image<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#menu2" class="nav-link">
Menu with image (Big)<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#menu3" class="nav-link">
Menu with image (small)<
/a>
<
/li>
<
/ul>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#menu4" class="nav-link">
Menu pdf<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#menu5" class="nav-link">
Menu Toggle<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#special" class="nav-link">
Today Specials<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#weeklymenu" class="nav-link">
Weekly Menu<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#loungebar" class="nav-link">
Lounge Bar<
/a>
<
/li>
<
/ul>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#" class="nav-link">
Pages<
span class="sub-toggle">
<
/span>
<
/a>
<
ul>
<
li>
<
a href="http://www.srcmini.com/#chefbio" class="nav-link">
Chef-Bio<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#giftcards" class="nav-link">
Gift Cards<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#locations" class="nav-link">
Our Locations<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#privatedining" class="nav-link">
Private Dining<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#catering" class="nav-link">
Catering<
/a>
<
/li>
<
/ul>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#gallery" class="nav-link">
Gallery<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#event" class="nav-link">
Events<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#reservation" class="nav-link">
Reservation<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#" class="nav-link">
Contact<
span class="sub-toggle">
<
/span>
<
/a>
<
ul>
<
li>
<
a href="http://www.srcmini.com/#contact" class="nav-link">
Contact Us<
/a>
<
/li>
<
li>
<
a href="http://www.srcmini.com/#contactform" class="nav-link">
Contact Form<
/a>
<
/li>
<
/ul>
<
/li>
<
/ul>
<
/nav>
<
!--// Home Page Menu section -->
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
<
!-- // Mainheader Menu Section -->
<
/div>
<
!-- VEGAS-->
<
div id="vegas_page">
<
div class="banner_bg1">
<
div class="ban_pattern_bg3">
<
div class="clearfix">
<
!--Vegas slider-->
<
div class="clearfix" id="home_ban">
<
div class="col-md-12">
<
div id="anchor1">
<
/div>
<
div id="home-fullWidth" class="clear">
<
div>
<
ul class="slider-controls">
<
li>
<
a id="vegas-next" class="s-next" href="http://www.srcmini.com/#">
<
/a>
<
/li>
<
li>
<
a id="vegas-prev" class="s-prev" href="http://www.srcmini.com/#">
<
/a>
<
/li>
<
/ul>
<
/div>
<
/div>
<
div class="main-title title-fullWidth">
<
div class="title-container">
<
div class="welcome hideme dontHide element_from_bottom">
The <
span>
Spice<
/span>
Lounge<
/div>
<
ul>
<
li class="sliding_title">
Come hungry. Leave happy.<
/li>
<
li>
Delicious Food <
/li>
<
li>
Best Taste Great Price<
/li>
<
/ul>
<
/div>
<
/div>
<
div id="logx">
<
/div>
<
/div>
<
/div>
<
!-- // Vegas slider -->
<
/div>
<
/div>
<
/div>
<
/div>
<
!-- /VEGAS-->
<
/div>
<
/div>
<
!--About us
=============================-->
<
div id="about" class="item" style="background-color:#999999;
">
<
img src="http://www.srcmini.com/assets/img/12.jpg" alt="The Spice Lounge" class="fullBg">
<
div class="content">
<
div class="content_overlay">
<
/div>
<
div class="content_inner">
<
div class="row contentscroll">
<
div class="container">
<
div class="col-md-6 empty">
&
nbsp;
<
/div>
<
div class="col-md-6 content_text">
<
h1>
About Us<
/h1>
<
div class="clearfix pad_top13">
<
div class="col-md-6">
<
p class="row">
<
span class="bold">
Specializes in Non-veg , 65, Thanthuri, Sandwich, 65 smoked sandwich.<
/span>
<
br/>
<
br/>
Our team of highly qualified professionals headed by an experienced Chef. Lnim ad minim veniam, quis nostrud.<
br />
<
br />
Exercitation ullamco laboris nisi ut aliquip ex ea commodo. Duis aute dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nullado tempore ercitationem ut labore. et dolore magna aliqua.<
/p>
<
/div>
<
div class="col-md-6">
<
div class="right_content ">
<
div class="sub_title">
<
h4>
Opening hours:<
/h4>
<
/div>
<
div class="hour_table">
<
table>
<
tr>
<
td class="days">
mon - Fri<
/td>
<
td>
9:00am - 4:00pm<
/td>
<
/tr>
<
tr>
<
td class="days">
Sat<
/td>
<
td>
9:00am - 2:00pm<
/td>
<
/tr>
<
tr>
<
td class="days">
Sun<
/td>
<
td>
8:30am - 1:00pm<
/td>
<
/tr>
<
/table>
<
/div>
<
div class="sub_title">
<
h4>
book your table:<
/h4>
<
/div>
<
p>
We welcome walk-in guests, online at<
br/>
<
br>
<
a class="button nav-link" href="http://www.srcmini.com/#reservation">
Book table<
/a>
<
/p>
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
<
!-- // About us
============================->
它用一些代码来说明主题的设计方式, 实际上是一个div, 其id代表页面。
这是模板的链接
http://www.accurathemes.com/tf/The_Spice_Lounge/v_1_2/site/white-version/index-vegas-another-version.htm
我将非常感谢你的帮助, 因为在搜索了很多stackoverflow之后, 这是我的最后希望:)
此致Raheel
#1你可以使用以下WordPress插件在WordPress中开发此一页网站:https://wordpress.org/plugins/page-scroll-to-id/
推荐阅读
- 我正在尝试将无限滚动与wordpress主题一起使用,但它不起作用
- 如何使用Redux Framework Sorter选项()
- 如何使用wp编辑器
- 如何在WordPress meta框中使用破折号或图标()
- 如何在Adapt wordpress主题的主页上显示类别的图像缩略图(免费版)
- 如何在wordpress主题的不同页面上显示不同的logo()
- 如何设置分类列表限制()
- 如何在wordpress中更新更新后的元数据上保存多个复选框()
- 如何从子主题中删除WordPress主题选项