ElaKiri Community
Downloads
Go Back   ElaKiri Community > General > Education
Reload this Page Wordpress Theme එකක් හදන හැටි
Reply
 
Thread Tools
(#1)
Old
joshmiller's Avatar
joshmiller joshmiller is offline
Senior Member
joshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nice
 
Posts: 3,516
Join Date: Feb 2014
Location: pitarata
Wordpress Theme එකක් හදන හැටි - 07-15-2014, 11:00 AM

කොහොමද දුවල පුතාල . උබල දන්නණවද එකක් Wordpress Theme හදන හැටි? . දන් නැත්තම් එන්න ඉගෙන ගන්න . මෙක මහලොකු දෙයක් නෙමේ . ඒත් හොද තීම් එකක් හදන්නනම් හොද creative කෙනෙක් වෙන්න ඕනෙ . මුලින්ම මේව ගැන පොඩි knolodge එකක් තියෙන්නම ඕනෙ .

  1. HTML
  2. CSS
  3. PHP ( theme ekak hadanna onema na )

ඔය ටික දන්න කාටත් තීම් එකක් හදාගන්න පුලුණන් . wordpress theme සම්මත structure එකක් තියෙනව . සරල wordpress theme එකක පහල ලිස්ත් එක තියෙන ෆයිල් අඩන්ගු වෙනවා .

  • Header.php
  • Index.php
  • Style.css
  • Sidebar.php
  • Footer.php



ඔන්න ඔච්චරයි සරල theme එහෙක තියෙන්නෙ



දැන් බලමු එක එක ෆයිස් කොහොමද කියල .



Header.php

Code:
<html>
<head>
<title>Tutorial theme</title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>HEADER</h1>
</div>



PHP Code:
<?php bloginfo('stylesheet_url'); ?>
ඔහොම තමයි style.css ලින්ක් කරගන්නෙ.

PHP Code:
<?php bloginfo('stylesheet_url'); ?>  = root/wp-content/themes/simple-theme/style.css




Index.php

Code:
<?php get_header(); ?>
<div id="main">
<div id="content">
<h1>Main Area</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<h4>Posted on <?php the_time('F jS, Y') ?></h4>
<p><?php the_content(__('(more...)')); ?></p>
<hr> <?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<div id="delimiter">
</div>
<?php get_footer(); ?>
index.php තමයි තිම් එකේ ඔක්කොම කැලි තනි පිට්වට සම්බන්ද කරන්න .


PHP Code:
<?php get_header(); ?>
header.php ෆයිල් එක
PHP Code:
<?php get_sidebar(); ?>
Sidebar.php ෆයිල් එක
PHP Code:
<?php get_footer(); ?>
Footer.php ෆයිල් එක



PHP Code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<h4>Posted on <?php the_time('F jS, Y'?></h4>
<p><?php the_content(__('(more...)')); ?></p>
<hr> <?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>

මේක ලූප් එකක් , ඔයා Wordpress Blog එකෙ පෝස්ට් දාල තියෙනවනම් එ පොස්ට් ටික තමයි ඔතන්ට එන්නෙ .
PHP Code:
<?php the_title(); ?>
Title of Post
PHP Code:
 <?php the_time('F jS, Y'?>
Time Posted
PHP Code:
<?php the_content(__('(more...)')); ?>
Read More ==> on karala thiyenawanm oka watenawa .


Style.css
Code:
/*
Theme Name: Theme name
Theme URI: theme url
Author: author
Author URI: http://wordpress.org/
Description:description 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/




body { text-align: center; }
#wrapper { display: block; border: 1px #a2a2a2 solid; width:90%; margin:0px auto; }
#header { border: 2px #a2a2a2 solid; }
#content { width: 75%; border: 2px #a2a2a2 solid; float: left; }
#sidebar { width: 23%; border: 2px #a2a2a2 solid; float: right; }
#delimiter { clear: both; }
#footer { border: 2px #a2a2a2 solid; }
.title { font-size: 11pt; font-family: verdana; font-weight: bold; }
මේක ගොඩක් වැදගත් මේකෙන් තමයි තීම් එක ලස්සන කරන්නෙ .

Sidebar.php
Code:
<div id="sidebar">
<h2 ><?php _e('Categories'); ?></h2>
<ul >
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
<h2 ><?php _e('Archives'); ?></h2>
<ul >
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
Footer.php

Code:
<div id="footer">
<h1>FOOTER</h1>
</div>
</div>
</body>
</html>

දැන් හරිනෙ? උබලට ඔනෙනම් ඔහොම ෆ්යිල් ටික හදල ගිහින් තීම් foldeර් එකත දාපුණම බබා ව්ගෙ වැඩ . අවසන් ප්රතිපලය



ේප් දෙන්න හොදඇ
Reply With Quote
(#2)
Old
shammaxxy's Avatar
shammaxxy shammaxxy is offline
Senior Member
shammaxxy is just really niceshammaxxy is just really niceshammaxxy is just really niceshammaxxy is just really niceshammaxxy is just really niceshammaxxy is just really niceshammaxxy is just really niceshammaxxy is just really niceshammaxxy is just really nice
 
Posts: 1,599
Join Date: May 2011
07-15-2014, 11:09 AM

bump
Reply With Quote
(#3)
Old
r1a r1a is offline
Senior Member
r1a has a spectacular aura aboutr1a has a spectacular aura aboutr1a has a spectacular aura aboutr1a has a spectacular aura aboutr1a has a spectacular aura about
 
Posts: 3,104
Join Date: Jan 2013
07-15-2014, 11:18 AM

bump
Reply With Quote
(#4)
Old
SP22614's Avatar
SP22614 SP22614 is offline
Senior Member
SP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to allSP22614 is a name known to all
 
Posts: 13,740
Join Date: Jun 2007
Location: 404 not found
Send a message via Skype™ to SP22614
07-15-2014, 11:39 AM

bump,..
Reply With Quote
(#5)
Old
miyuru4u's Avatar
miyuru4u miyuru4u is online now
Senior Member
miyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to beholdmiyuru4u is a splendid one to behold
 
Posts: 27,281
Join Date: Jan 2007
Location: In the eyes of my girl
07-15-2014, 11:39 AM

maxxa kollek ne thanks
Reply With Quote
(#6)
Old
joshmiller's Avatar
joshmiller joshmiller is offline
Senior Member
joshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nice
 
Posts: 3,516
Join Date: Feb 2014
Location: pitarata
07-15-2014, 12:36 PM

Quote:
Originally Posted by miyuru4u View Post
maxxa kollek ne thanks
ela
Reply With Quote
(#7)
Old
gangst3r.93's Avatar
gangst3r.93 gangst3r.93 is offline
Senior Member
gangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of lightgangst3r.93 is a glorious beacon of light
 
Posts: 12,380
Join Date: Sep 2010
Location: ගම්පහ
07-15-2014, 12:39 PM

උබ මේක ඉස්සුවා එකක්ද?
Reply With Quote
(#8)
Old
achintha achintha is offline
Senior Member
achintha will become famous soon enough
 
Posts: 420
Join Date: Sep 2006
07-15-2014, 12:50 PM

All the file names should have to be in lower case. Its working on windows since its having case sensitive on files name. But on linux it will not going to work.

header.php
index.php
dtyle.css
sidebar.php
footer.php
Reply With Quote
(#9)
Old
joshmiller's Avatar
joshmiller joshmiller is offline
Senior Member
joshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nicejoshmiller is just really nice
 
Posts: 3,516
Join Date: Feb 2014
Location: pitarata
07-15-2014, 12:51 PM

Quote:
Originally Posted by gangst3r.93 View Post
උබ මේක ඉස්සුවා එකක්ද?
photos nam issuwa google karala
Reply With Quote
(#10)
Old
anuradhamapa's Avatar
anuradhamapa anuradhamapa is online now
Senior Member
anuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to allanuradhamapa is a name known to all
 
Posts: 11,054
Join Date: Aug 2006
Location: Kandy,Kiribathkumbura
Send a message via MSN to anuradhamapa Send a message via Yahoo to anuradhamapa Send a message via Skype™ to anuradhamapa
07-15-2014, 12:52 PM

hurathaleta copy paste karala. kamak ne mahansi una ne.. wordpress nam one taram baganna puluwani. image slider wage ewwa hadana heti houyaala dapan
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright © 2006 - 2011 ElaKiri™ Beta2.Evo vBulletin, vBa iBproArcade Subdreamer I-Magic MKv

Page generated in 0.02616 seconds with 9 queries