Tải bản đầy đủ

1785288458 {1586c47f} wordpress responsive theme design essentials markovic 2015 06 30



WordPressResponsiveThemeDesign


TableofContents
WordPressResponsiveThemeDesign
Credits
AbouttheAuthor
AbouttheReviewers
www.PacktPub.com
Supportfiles,eBooks,discountoffers,andmore
Whysubscribe?
FreeaccessforPacktaccountholders
Preface
Whatthisbookcovers
Whatyouneedforthisbook
Whothisbookisfor
Conventions
Readerfeedback
Customersupport

Downloadingtheexamplecode
Downloadingthecolorimagesofthisbook
Errata
Piracy
Questions
1.ResponsiveWebDesignwithWordPress
TheconceptsofRWD
ControllingViewport
Scaling
Thescreendensity
Problemsandsolutionswiththescreendensity
TechniquesinRWD
Mediaqueries
Breakpoints


Fluidgrids
Frameworkspositives
Frameworksnegatives
Flexibleimagesandmedia
SettinguptheWordPressenvironment
InstallingandsettingupWordPress
Settinguptheunderscorestheme
InstallingtheWordPresstheme’sunittestdata
InstallingtheDeveloperplugin
Summary
2.UnderstandingtheWordPressThemeStructure
SettingWordPresspermalinks
WhatisaWordPresstheme?
Templatefiles
Thepagestructureoftemplatefiles
Themesubfolders
Summary
3.GettingStartedwithResponsiveLayout
Choosingtherighttoolforourproject
Howtosetupfunctions.php
Howtosetupstyles.css
Theemandremvalues
Addingmediaqueries
Summary

4.LearnHowtoCreatetheHeaderandNavigation
Makingourlayoutcentered
Dealingwiththeheader
Howtocreateamenuandmakeitresponsiveandaccessible
Menubasics
Stylingourmenu
Howtomakeourmenuaccessible


Howtomakeourmenuresponsive
Summary
5.CustomizingSinglePostTemplates
Analyzingsingleposttemplates
Analyzingthecontent-single.phpfile
Templateimprovements
Headerimprovements
Implementingchangestotheposttemplate
Stylingpost’smetadata
Contentsection
Tags
Postnavigation
Summary
6.ResponsiveWidgets,Footer,andComments
Widgets
Sidebars
Stylingsidebars
Editingthefooter
Workingwithcomments
Stylingcommentstitle
Stylingcomments
Commentsnavigation
Summary
7.WorkingwithImagesandVideos
Featuredimages
Settingupafeaturedimage
Resizingfeaturedimages
Imagecaptions
Imagegalleries
Makingthegalleryresponsive
Workingwithvideos


Summary
8.WorkingwithTemplateFiles
TheWordPresstemplatehierarchy
Excerpts
Featuredimages
Customizingthepagingnavigation
Stylingstickyposts
Modifyingarchive.php
Modifying404.php
Modifyingsearch.php
Summary
9.WorkingwithStaticPagesandAddingtheExtraFunctionalitywithPlugins
Homepage
Thehomepagetemplate
Stylesforthehometemplate
Sliderplugin
TheServicessection(listofservices)
Makingourhomepageresponsive
TheContactUspage
Summary
10.SubmittingYourThemetoWordPress.org
Polishingcodebeforesubmission
Applyingtheeditorstyles
ValidatingtheHTMLandCSScode
ValidatingtheJavaScriptcode
ValidatingthePHPcode
Debuggingthesetup
Multiplewp-config.phpsets
Addingthereadme.txtfile
Addingthescreenshot.pngfile
Runningathemecheckplugin


Summary
Index



WordPressResponsiveThemeDesign



WordPressResponsiveThemeDesign
Copyright©2015PacktPublishing
Allrightsreserved.Nopartofthisbookmaybereproduced,storedinaretrievalsystem,
ortransmittedinanyformorbyanymeans,withoutthepriorwrittenpermissionofthe
publisher,exceptinthecaseofbriefquotationsembeddedincriticalarticlesorreviews.
Everyefforthasbeenmadeinthepreparationofthisbooktoensuretheaccuracyofthe
informationpresented.However,theinformationcontainedinthisbookissoldwithout
warranty,eitherexpressorimplied.Neithertheauthor,norPacktPublishing,andits
dealersanddistributorswillbeheldliableforanydamagescausedorallegedtobecaused
directlyorindirectlybythisbook.
PacktPublishinghasendeavoredtoprovidetrademarkinformationaboutallofthe
companiesandproductsmentionedinthisbookbytheappropriateuseofcapitals.
However,PacktPublishingcannotguaranteetheaccuracyofthisinformation.
Firstpublished:June2015
Productionreference:1260615
PublishedbyPacktPublishingLtd.
LiveryPlace
35LiveryStreet
BirminghamB32PB,UK.
ISBN978-1-78528-845-6
www.packtpub.com



Credits
Author
DejanMarkovic
Reviewers
RoryAshford
JohnEckman
MattiaMigliorini
CommissioningEditor
DipikaGaonkar
AcquisitionEditors
NehaNagwekar
LarissaPinto
ContentDevelopmentEditor
RohitKumarSingh
TechnicalEditors
MrunalM.Chavan
RahulC.Shah
CopyEditors
SoniaMichelleCheema
GladsonMonteiro
VikrantPhadke
StutiSrivastava
NehaVyas
ProjectCoordinator
MaryAlex
Proofreaders
SimranBhogal
SafisEditing
MariaGould
Indexer
MonicaAjmeraMehta


ProductionCoordinator
NileshR.Mohite
CoverWork
NileshR.Mohite



AbouttheAuthor
DejanMarkovicisthepresidentofNYTOGroup(http://www.nytogroup.com/),a
premiumwebdevelopmentcompanywithofficesconvenientlylocatedinbothToronto
andNewYork.Heisanexperiencedwebdeveloperwiththeextensiveknowledgeofboth
frontendandbackendtechnologies(PHP,ASP.NET,JavaScript,ColdFusion,HTML5,
CSS3,WordPress,Joomla,Drupal,tonamejustafew).
AsDejanstronglybelievesinreturningbacktothecommunity,hedevelopedand
contributedto2freeWordPressplugins:BufferMyPost
(https://wordpress.org/plugins/buffer-my-post/)andTweetOldCustomPost
(https://wordpress.org/plugins/tweet-old-custom-post/).Heisalsooneoftheorganizersof
WPTorontomeetupgroupandtheWordCampToronto,anannualWordPressconference.
YoucanalwaysfindhimonvariousWordCamps(especiallytheoneswithindriving
distancefromToronto)orexploringthenature,art&loveforfoodacrossCanada&US.
Shouldyouhaveanyquestions,comments,concernsorjustwanttosayhello,youcan
shoothimanemailat.Hewouldlovetohearyourthoughts
aboutthisbook.
DejanwasatechnicalreviewerofthebookLearningYeoman
(http://www.amazon.com/Learning-Yeoman-Jonathan-Spratley/dp/1783981385).Thisis
hisfirsttimeasanauthor.
Iwouldliketothankmygirlfriend,lifepartner,andfuturewife,Tina,whoalwaysstood
besidemethroughmybestandworsttimes.Thankyouforyourhelpandunderstanding,
andyourtremendousandunconditionalsupport.Withoutyou,allofthiswouldhavebeen
impossible.Tina,youaremyshiningstar!
Iwouldalsoliketothankmymother,Spasenija,whoisstillmyinspirationandagreat
exampleofasurvivorwhowentthroughalot.ThankyouMamaforeverything!
Thisbookwouldnothavebeenpossiblewithoutthesupportandloveofmybrother,
Marko,mybeautifulsister-in-law,Nikolina,andthebestnephewsandnieceanyonecould
have—Stefan,Luka,andAngelina.Iloveyouallverymuchandthankyouforyour
understanding(especiallymynephewsandniece)asIhadtoworkonthisbookeven
whilestayingatyourhomeduringtheholidays.IamsosorrythatIdidn’thavemorefree
timetoplaywithyou.
Mysoon-to-bebrother-in-law,ToshaSerbian,hascreatedthelogoforthethemeTopcat
thatweusedinthisbook.Tosha,thankyouforyourhelpandadvice.Itisgreatly
appreciated!
ManythankstoNehaNagwekar,NeetuMathew,RohitKumarSingh,LarissaPinto,and
therestofthePacktPublishingteam.
Ihaverecentlylosttwofamilymembersthatwereimportanttome,andthissectionis
dedicatedtothem:


OurbelovedDragisa,
You’veleftusquietly,asyouhavelivedyourentirelife.Yourheart,whichtaughtus
honesty,integrity,andloyalty,hasstopped.Weareleftherealone,withoutyou,with
allthosememoriesoftrueappreciationandfriendship.Yourtimewascoloredwith
modesty,generosity,andself-sacrificingandstrenuouswork.Youwereourbackbone
inthehardesttimesandwithyourgenerosityyouacceptedusasyourown.Wewill
beforevergrateful.Mayyouhaveeternalglory!
DearNoki,
Youwerethelightthatwasshiningonus.Yourpassiontohelpeverybodyandyour
reliabilityaresomethingthatpeoplewillrememberyouby.
IwillneverforgetyouandIwillalwaysloveyouwithallmyheart.Yourwillbemy
brotherforever!



AbouttheReviewers
RoryAshfordisanEnglishwebdeveloper.HecurrentlymanagesthestudioatCodeBlue
Digital.Inhissparetime,hehasbuilttheGridtacularresponsivegridsystem,Wordpress
BEMMenus,andotheropensourceprojects.
Iwouldliketothankmygirlfriend,Caroline,forherpatience(andhercoffee).Sheputup
withmewhenreviewingthisbookinthemidstofbuyingandmovingintoournewhouse.
JohnEckmanisthechiefexecutiveofficerof10up,adistributeddigitalagencythat
focusesondesigninganddeliveringgreatwebpublishingexperiencesonWordPress.
HereceivedaBAfromBostonUniversity,amaster’sdegreeininformationsystemsfrom
NortheasternUniversity,andaPhDfromtheUniversityofWashington,Seattle.Johnisan
activecontributortoanumberofopensourceprojectsandcommunities,andafounder
andorganizerofWordCampBoston.Hepostsblogsatwww.openparenthesis.organd
tweetsas@jeckman.
MattiaMigliorini,alsoknownasdeshack,isafreelancewebdesigneranddeveloperwho
lovesWordPress.Heisalwaysonthelookoutforamazingresponsivedesigns.Heisalso
anopensourceevangelistandamemberoftheUbuntucommunity.Mattiacurrently
worksbothasafreelancerandforVBItaliaSrl,anItaliane-commercecompany.



www.PacktPub.com


Supportfiles,eBooks,discountoffers,and
more
Forsupportfilesanddownloadsrelatedtoyourbook,pleasevisitwww.PacktPub.com.
DidyouknowthatPacktofferseBookversionsofeverybookpublished,withPDFand
ePubfilesavailable?YoucanupgradetotheeBookversionatwww.PacktPub.comandas
aprintbookcustomer,youareentitledtoadiscountontheeBookcopy.Getintouchwith
usatformoredetails.
Atwww.PacktPub.com,youcanalsoreadacollectionoffreetechnicalarticles,signup
forarangeoffreenewslettersandreceiveexclusivediscountsandoffersonPacktbooks
andeBooks.

https://www2.packtpub.com/books/subscription/packtlib
DoyouneedinstantsolutionstoyourITquestions?PacktLibisPackt’sonlinedigital
booklibrary.Here,youcansearch,access,andreadPackt’sentirelibraryofbooks.


Whysubscribe?
FullysearchableacrosseverybookpublishedbyPackt
Copyandpaste,print,andbookmarkcontent
Ondemandandaccessibleviaawebbrowser


FreeaccessforPacktaccountholders
IfyouhaveanaccountwithPacktatwww.PacktPub.com,youcanusethistoaccess
PacktLibtodayandview9entirelyfreebooks.Simplyuseyourlogincredentialsfor
immediateaccess.


Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay

×
x