ផ្សាយពាណិជ្ជកម្ម
គេហទំព័រ មានទទួល ផ្សាយពាណិជ្ជកម្ម គ្រប់ប្រភទ /ចាងហ្វាងការផ្សាយ : លោក ថាំង បុ៊ន សុង / ទីស្នាក់ការកណ្តាល : ភូមិ ១ /សង្កាត់ ផ្សារដើមថ្កូវ / ខណ្ឌ ចំការមន /រាជធានីភ្នំពេញ / ទំនាក់ទំនង Tele: 012 253 887 / 016 253 887

Breaking

Tuesday, September 22, 2026

ប៊ូតុង "សូមអានបន្ថែម" ក្នុងកូដរបស់អ្នកមិនដំណើរការ គឺដោយសារតែ

 មូលហេតុដែលប៊ូតុង "សូមអានបន្ថែម" ក្នុងកូដរបស់អ្នកមិនដំណើរការ គឺដោយសារតែ <b:attr name='href' value='data:post.url'/> ត្រូវបានដាក់នៅដាច់ដោយឡែកពីគ្នា ក្នុងស្លាក <a> ដែលគ្មានតំណភ្ជាប់គោលដៅច្បាស់លាស់សម្រាប់ប៊ូតុង និងចំណងជើងក្នុងកូដ Blogger v2 នេះ ទើបធ្វើឱ្យពេលចុចទៅអត់ទាន់មាន Action អ្វីកើតឡើង។

ដើម្បីកែតម្រូវឱ្យវាដំណើរការបាន ១០០% (ទាំងរូបភាព ចំណងជើង និងប៊ូតុង "សូមអានបន្ថែម") យើងត្រូវប្តូរមកប្រើប្រាស់ទម្រង់ expr:href='data:post.url' সরাসরিនៅលើស្លាក <a> វិញ។

សូមយកកូដពេញលេញខាងក្រោមនេះ ទៅជំនួសកូដចាស់របស់អ្នកក្នុង Blogger Theme > Edit HTML រួចចុចប៊ូតុង Save៖

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta charset='UTF-8'/>
<meta content='width=device-width, initial-scale=1' name='viewport'/>
<b:include data='blog' name='all-head-content'/>
<title><data:blog.pageTitle/></title>

<link href='https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&amp;family=Moul&amp;family=Hanuman:wght@400;700&amp;display=swap' rel='stylesheet'/>
<link href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'/>

<b:skin><![CDATA[
/* ===== RESET ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Battambang', 'Hanuman', Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; height:auto; display:block; }

/* ===== HEADER ===== */
.top-header {
  background: #1a1a2e;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 3px solid #0f3460;
}
.home-btn {
  background: #e53935;
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 3px;
  text-transform: uppercase;
}
.home-btn:hover { background: #c62828; }
.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.top-menu a {
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  transition: 0.3s;
}
.top-menu a:hover { color: #ffe600; }

@media (max-width: 768px) {
  .top-header { flex-direction: column; gap: 8px; }
  .top-menu { justify-content: center; }
  .top-menu a { padding: 5px 8px; font-size: 11px; }
}

/* ===== NOTIFICATION BAR ===== */
.notif-bar {
  background: #fff;
  padding: 8px 15px;
  border-bottom: 2px solid #2e7d32;
  overflow: hidden;
}
.notif-inner {
  background: #2e7d32;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== BANNER ===== */
.banner-section {
  background: #0d1b4c;
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.banner-content {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
}
.banner-title {
  font-family: 'Moul', serif;
  font-size: 60px;
  color: #ff9800;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  line-height: 1.2;
  margin-bottom: 10px;
}
.banner-subtitle {
  font-family: 'Moul', serif;
  font-size: 42px;
  color: #ffeb3b;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .banner-title { font-size: 32px; }
  .banner-subtitle { font-size: 24px; }
  .banner-content { padding: 20px 10px; }
}

/* ===== SUB BANNER ===== */
.sub-banner {
  background: #0d47a1;
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-family: 'Moul', serif;
  font-size: 18px;
  border-bottom: 3px solid #ffe600;
}
@media (max-width: 768px) {
  .sub-banner { font-size: 13px; padding: 8px 10px; }
}

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 15px;
}
@media (max-width: 900px) {
  .main-wrapper { grid-template-columns: 1fr; }
}

/* ===== FEATURED POST ===== */
.featured-post {
  background: #fff;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.featured-post img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.featured-post .featured-content {
  padding: 15px;
}
.featured-post h2 {
  font-size: 22px;
  color: #0d47a1;
  margin-bottom: 10px;
  font-family: 'Moul', serif;
  line-height: 1.5;
}
.featured-post h2 a:hover { color: #e53935; }
.featured-post .meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.featured-post .snippet {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  text-align: justify;
}

@media (max-width: 600px) {
  .featured-post img { height: 220px; }
  .featured-post h2 { font-size: 17px; }
}

/* ===== POST ITEM ===== */
.post-item {
  background: #fff;
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: 0.3s;
}
.post-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.post-thumb {
  flex: 0 0 200px;
  height: 140px;
  overflow: hidden;
  border-radius: 3px;
  background: #eee;
}
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.post-item:hover .post-thumb img { transform: scale(1.08); }
.post-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-title {
  font-size: 17px;
  color: #0d47a1;
  font-weight: bold;
  margin-bottom: 6px;
  line-height: 1.5;
  font-family: 'Moul', 'Battambang', serif;
}
.post-title:hover { color: #e53935; }
.post-meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-meta i { color: #1565c0; margin-right: 3px; }
.post-snippet {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.readmore-wrap { text-align: right; }
.read-more-btn {
  display: inline-block;
  color: #e53935;
  font-weight: bold;
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid #e53935;
  border-radius: 3px;
  transition: 0.3s;
  cursor: pointer;
}
.read-more-btn:hover {
  background: #e53935;
  color: #fff;
}

@media (max-width: 600px) {
  .post-item { flex-direction: column; padding: 10px; }
  .post-thumb { flex: none; width: 100%; height: 180px; }
  .post-title { font-size: 15px; }
}

/* ===== SIDEBAR ===== */
.sidebar-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.sidebar-title {
  background: #0d47a1;
  color: #fff;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border-left: 4px solid #ffe600;
  font-family: 'Moul', 'Battambang', serif;
}
.popular-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  transition: 0.3s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: #f8f9fa; }
.popular-thumb {
  flex: 0 0 80px;
  height: 65px;
  overflow: hidden;
  border-radius: 3px;
  background: #eee;
}
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 13px;
  color: #333;
  font-weight: bold;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-title:hover { color: #e53935; }
.popular-date {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

/* ===== SEARCH BOX ===== */
.search-box {
  display: flex;
  margin-bottom: 15px;
}
.search-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 13px;
  font-family: inherit;
}
.search-box button {
  background: #e53935;
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: bold;
}
.search-box button:hover { background: #c62828; }

/* ===== PAGINATION ===== */
.blog-pager {
  text-align: center;
  padding: 20px 0;
}
.blog-pager a {
  display: inline-block;
  padding: 9px 18px;
  background: #0d47a1;
  color: #fff;
  border-radius: 3px;
  margin: 0 4px;
  font-weight: bold;
  font-size: 13px;
  transition: 0.3s;
}
.blog-pager a:hover { background: #e53935; }

/* ===== FOOTER ===== */
.footer {
  background: #1a1a2e;
  color: #ccc;
  text-align: center;
  padding: 20px 15px;
  margin-top: 30px;
  font-size: 13px;
  border-top: 3px solid #0d47a1;
}
.footer a { color: #ffe600; }
]]></b:skin>
</head>

<body>

<!-- ===== TOP HEADER ===== -->
<div class='top-header'>
  <a class='home-btn' href='/'><i class='fa fa-home'/> HOME</a>
  <div class='top-menu'>
    <a href='/search/label/ព័ត៌មានជាតិ'>ព័ត៌មានជាតិ</a>
    <a href='/search/label/ព័ត៌មានអន្តរជាតិ'>ព័ត៌មានអន្តរជាតិ</a>
    <a href='/search/label/សេដ្ឋកិច្ច'>សេដ្ឋកិច្ច</a>
    <a href='/search/label/សង្គម'>សង្គម</a>
    <a href='/search/label/កីឡា'>កីឡា</a>
    <a href='/search/label/ជីវិតសង្គម'>ជីវិតសង្គម</a>
    <a href='/search/label/សុខភាព'>សុខភាព</a>
    <a href='/search/label/អប់រំ'>អប់រំ</a>
    <a href='/search/label/បច្ចេកវិទ្យា'>បច្ចេកវិទ្យា</a>
    <a href='/search/label/វប្បធម៌'>វប្បធម៌</a>
    <a href='/search/label/កម្សាន្ត'>កម្សាន្ត</a>
  </div>
</div>

<!-- ===== NOTIFICATION BAR ===== -->
<div class='notif-bar'>
  <div class='notif-inner'>
    📢 ផ្សេងៗ និង ទទួលផ្សាយ សំណាងគ្រប់ប្រភេទ / ភូមិនិរភាព / សង្គត់និរភាព / ខួបចូលពីអំពី / រាជធានីព្រៃនគរ
  </div>
</div>

<!-- ===== BANNER ===== -->
<div class='banner-section'>
  <div class='banner-content'>
    <div class='banner-title'>BEENER</div>
    <div class='banner-subtitle'>ជ្រៃយពាណិជ្ជកម្ម</div>
  </div>
</div>

<!-- ===== SUB BANNER ===== -->
<div class='sub-banner'>
  ជូនព័ត៌មាន សំណាងគ្រប់ប្រភេទ / ភូមិនិរភាព / សង្គត់និរភាព / ខួបចូលពីអំពី / រាជធានីព្រៃនគរ
</div>

<!-- ===== MAIN CONTENT ===== -->
<div class='main-wrapper'>

  <!-- LEFT: POSTS AREA -->
  <div class='posts-area'>
    <b:section class='main' id='main' showaddelement='no'>
      <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog' version='2' visible='true'>
        <b:widget-settings>
          <b:widget-setting name='showDateHeader'>false</b:widget-setting>
          <b:widget-setting name='showShareButtons'>false</b:widget-setting>
          <b:widget-setting name='showCommentLink'>true</b:widget-setting>
          <b:widget-setting name='showAuthor'>true</b:widget-setting>
          <b:widget-setting name='showLabels'>true</b:widget-setting>
          <b:widget-setting name='showTimestamp'>true</b:widget-setting>
        </b:widget-settings>
        <b:includable id='main'>
          <b:loop values='data:posts' var='post' index='i'>
            
            <b:if cond='data:i == 0'>
              <!-- FEATURED POST (First Post) -->
              <div class='featured-post'>
                <a expr:href='data:post.url'>
                  <b:if cond='data:post.featuredImage'>
                    <img expr:alt='data:post.title' expr:src='data:post.featuredImage'/>
                  <b:else/>
                    <img alt='featured' src='https://via.placeholder.com/800x350/0d47a1/ffffff?text=Featured+News'/>
                  </b:if>
                </a>
                <div class='featured-content'>
                  <h2>
                    <a expr:href='data:post.url'>
                      <data:post.title/>
                    </a>
                  </h2>
                  <div class='meta'>
                    <i class='fa fa-calendar'/> <data:post.date/> &#160;|&#160;
                    <i class='fa fa-user'/> <data:post.author/>
                  </div>
                  <div class='snippet'>
                    <data:post.snippet/>
                  </div>
                  <div class='readmore-wrap'>
                    <a class='read-more-btn' expr:href='data:post.url'>
                      សូមអានបន្ថែម →
                    </a>
                  </div>
                </div>
              </div>
            <b:else/>
              <!-- REGULAR POST -->
              <div class='post-item'>
                <div class='post-thumb'>
                  <a expr:href='data:post.url'>
                    <b:if cond='data:post.featuredImage'>
                      <img expr:alt='data:post.title' expr:src='data:post.featuredImage'/>
                    <b:else/>
                      <img alt='no-image' src='https://via.placeholder.com/200x140/0d47a1/ffffff?text=NEWS'/>
                    </b:if>
                  </a>
                </div>
                <div class='post-content'>
                  <h2 class='post-title'>
                    <a expr:href='data:post.url'>
                      <data:post.title/>
                    </a>
                  </h2>
                  <div class='post-meta'>
                    <span><i class='fa fa-calendar'/> <data:post.date/></span>
                    <span><i class='fa fa-user'/> <data:post.author/></span>
                    <span><i class='fa fa-comments'/> <data:post.numComments/></span>
                  </div>
                  <div class='post-snippet'>
                    <data:post.snippet/>
                  </div>
                  <div class='readmore-wrap'>
                    <a class='read-more-btn' expr:href='data:post.url'>
                      សូមអានបន្ថែម →
                    </a>
                  </div>
                </div>
              </div>
            </b:if>
            
          </b:loop>

          <!-- Pagination -->
          <div class='blog-pager'>
            <b:if cond='data:olderPageUrl'>
              <a expr:href='data:olderPageUrl'><i class='fa fa-chevron-left'/> ចាស់ជាង</a>
            </b:if>
            <b:if cond='data:newerPageUrl'>
              <a expr:href='data:newerPageUrl'>ថ្មីជាង <i class='fa fa-chevron-right'/></a>
            </b:if>
          </div>
        </b:includable>
      </b:widget>
    </b:section>
  </div>

  <!-- RIGHT: SIDEBAR -->
  <div class='sidebar'>
    
    <!-- SEARCH -->
    <form action='/search' class='search-box' method='get'>
      <input name='q' placeholder='ស្វែងរក...' type='text'/>
      <button type='submit'><i class='fa fa-search'/> Search</button>
    </form>

    <!-- POPULAR POSTS 1 -->
    <div class='sidebar-section'>
      <div class='sidebar-title'>POPULAR POSTS</div>
      <b:section id='sidebar1' showaddelement='yes'>
        <b:widget id='PopularPosts1' locked='false' title='' type='PopularPosts' version='2' visible='true'>
          <b:widget-settings>
            <b:widget-setting name='numItemsToShow'>5</b:widget-setting>
            <b:widget-setting name='showThumbnails'>true</b:widget-setting>
            <b:widget-setting name='showSnippets'>false</b:widget-setting>
            <b:widget-setting name='timeRange'>ALL_TIME</b:widget-setting>
          </b:widget-settings>
          <b:includable id='main'>
            <b:loop values='data:posts' var='post'>
              <div class='popular-item'>
                <div class='popular-thumb'>
                  <a expr:href='data:post.href'>
                    <b:if cond='data:post.thumbnail'>
                      <img expr:alt='data:post.title' expr:src='data:post.thumbnail'/>
                    <b:else/>
                      <img alt='no-img' src='https://via.placeholder.com/80x65/0d47a1/ffffff?text=News'/>
                    </b:if>
                  </a>
                </div>
                <div class='popular-info'>
                  <a expr:href='data:post.href'>
                    <div class='popular-title'><data:post.title/></div>
                  </a>
                  <div class='popular-date'><i class='fa fa-clock-o'/> <data:post.date/></div>
                </div>
              </div>
            </b:loop>
          </b:includable>
        </b:widget>
      </b:section>
    </div>

    <!-- POPULAR POSTS 2 (Recent) -->
    <div class='sidebar-section'>
      <div class='sidebar-title'>RECENT POSTS</div>
      <b:section id='sidebar2' showaddelement='yes'>
        <b:widget id='PopularPosts2' locked='false' title='' type='PopularPosts' version='2' visible='true'>
          <b:widget-settings>
            <b:widget-setting name='numItemsToShow'>5</b:widget-setting>
            <b:widget-setting name='showThumbnails'>true</b:widget-setting>
            <b:widget-setting name='showSnippets'>false</b:widget-setting>
            <b:widget-setting name='timeRange'>LAST_WEEK</b:widget-setting>
          </b:widget-settings>
          <b:includable id='main'>
            <b:loop values='data:posts' var='post'>
              <div class='popular-item'>
                <div class='popular-thumb'>
                  <a expr:href='data:post.href'>
                    <b:if cond='data:post.thumbnail'>
                      <img expr:alt='data:post.title' expr:src='data:post.thumbnail'/>
                    <b:else/>
                      <img alt='no-img' src='https://via.placeholder.com/80x65/0d47a1/ffffff?text=News'/>
                    </b:if>
                  </a>
                </div>
                <div class='popular-info'>
                  <a expr:href='data:post.href'>
                    <div class='popular-title'><data:post.title/></div>
                  </a>
                  <div class='popular-date'><i class='fa fa-clock-o'/> <data:post.date/></div>
                </div>
              </div>
            </b:loop>
          </b:includable>
        </b:widget>
      </b:section>
    </div>

    <!-- ARCHIVES -->
    <div class='sidebar-section'>
      <div class='sidebar-title'>ARCHIVES</div>
      <b:section id='sidebar3' showaddelement='yes'>
        <b:widget id='BlogArchive1' locked='false' title='' type='BlogArchive' version='1' visible='true'>
          <b:widget-settings>
            <b:widget-setting name='showStyle'>MENU</b:widget-setting>
            <b:widget-setting name='yearPattern'>yyyy</b:widget-setting>
            <b:widget-setting name='showWeekEnd'>true</b:widget-setting>
            <b:widget-setting name='monthPattern'>MMMM yyyy</b:widget-setting>
            <b:widget-setting name='dayPattern'>MMM dd</b:widget-setting>
            <b:widget-setting name='weekPattern'>MM/dd</b:widget-setting>
            <b:widget-setting name='chronological'>false</b:widget-setting>
            <b:widget-setting name='showPosts'>true</b:widget-setting>
            <b:widget-setting name='frequency'>MONTHLY</b:widget-setting>
          </b:widget-settings>
          <b:includable id='main'>
            <div style='padding:12px;'>
              <select onchange='location = this.value;' style='width:100%;padding:8px;border:1px solid #ddd;border-radius:3px;font-family:inherit;'>
                <option value=''>ជ្រើសរើសខែ...</option>
                <b:loop values='data:data' var='i'>
                  <option expr:value='data:i.url'><data:i.name/> (<data:i.post-count/>)</option>
                </b:loop>
              </select>
            </div>
          </b:includable>
        </b:widget>
      </b:section>
    </div>

    <!-- LABELS -->
    <div class='sidebar-section'>
      <div class='sidebar-title'>CATEGORIES</div>
      <b:section id='sidebar4' showaddelement='yes'>
        <b:widget id='Label1' locked='false' title='' type='Label' version='1' visible='true'>
          <b:widget-settings>
            <b:widget-setting name='sorting'>ALPHA</b:widget-setting>
            <b:widget-setting name='display'>LIST</b:widget-setting>
            <b:widget-setting name='selectedLabelsList'/>
            <b:widget-setting name='showType'>ALL</b:widget-setting>
            <b:widget-setting name='showFreqNumbers'>true</b:widget-setting>
          </b:widget-settings>
          <b:includable id='main'>
            <div style='padding:12px;'>
              <b:loop values='data:labels' var='label'>
                <a class='label-link' expr:href='data:label.url' style='display:inline-block;padding:5px 10px;margin:3px;background:#f0f2f5;border-radius:3px;font-size:12px;color:#0d47a1;'>
                  <data:label.name/> (<data:label.count/>)
                </a>
              </b:loop>
            </div>
          </b:includable>
        </b:widget>
      </b:section>
    </div>

  </div>
</div>

<!-- ===== FOOTER ===== -->
<div class='footer'>
  <p>© 2026 <a href='/'><data:blog.title/></a> - រក្សាសិទ្ធិគ្រប់បែបយ៉ាង</p>
</div>

</body>
</html>

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages