Support Center

Themes

Live Articles includes default themes out of the box. It's easy to create your own themes with basic HTML & CSS knowledge. We'll be happy to create a theme for you under our Premium Support option as well.

Although you can create a new theme from scratch, it's almost always easier to copy an existing theme and modify it. All Live Articles themes are located at /DesktopModules/LiveArticles/Themes and each folder represents a seperate theme.

Let's Create a New Theme

Copy an existing theme folder (such as Default) and rename it to MyTheme. You can use any theme name as long as it doesn't have any spaces or special characters in it.

Categories

Important

The final step to ensure that you're newly created theme works is to edit the style.css located at /DesktopModules/LiveArticles/Themes/MyTheme/Style/Style.css and ensure that all css declarations begin with .mytheme

You must inherit all IDs, Classes, any other CSS Tags in your newly created Style.css from class .mytheme(where this is your new theme name in lowercase)

Example:

  • .default .article.header, .default .author{
  • border-color:#E4E4E4 #CCCCCC #BBBBBB;
  • border-style:solid;
  • border-width:1px;
  • border-radius:4px;
  • -moz-border-radius:4px;
  • -webkit-border-radius: 4px;
  • }

The above markup would change to:

  • .mytheme .article.header, .mytheme .author{
  • border-color:#E4E4E4 #CCCCCC #BBBBBB;
  • border-style:solid;
  • border-width:1px;
  • border-radius:4px;
  • -moz-border-radius:4px;
  • -webkit-border-radius: 4px;
  • }

You will also need to replace default class with mytheme class in Master.htm

(/DesktopModules/LiveArticles/Themes/MyTheme/Template/), Article.htm

(/DesktopModules/LiveArticles/Themes/MyTheme/Template/) and Author.htm

(/DesktopModules/LiveArticles/Themes/MyTheme/Template/Tokens/)

Example (Master.htm)

<div class="default">
       [Review] [ManageArticles]
       <br style="clear: both" />
               <div class="articleleft">
               <div class="msearch-result" id="LASearchResult[moduleid]" style="display: none">
               </div>
               <div class="head">
               <h1 class="articlename">
                       [ArticleName]</h1>
                       [RssFeeds]
                       <br style="line-height: 12px; clear: both" />
                        <h3 class="articledescription">
                                [ArticleDescription]</h3>
                        [Author]</div>
                <br />
                [Articles] [Pager]
       </div>
       <div class="articleright">
       </div>
</div>
<div style="clear: both">
</div>

 

The above markup would change to:

<div class="mytheme">
        <div class="default">
        [Review] [ManageArticles]
        <br style="clear: both" />
        <div class="articleleft">
        <div class="msearch-result" id="LASearchResult[moduleid]" style="display: none">
        </div>
        <div class="head">
                <h1 class="articlename">
                        [ArticleName]</h1>
                [RssFeeds]
                <br style="line-height: 12px; clear: both" />
                 <h3 class="articledescription">
                         [ArticleDescription]</h3>
                  [Author]</div>
         <br />
         [Articles] [Pager]
    </div>
    <div class="articleright">
    </div>
</div>
<div style="clear: both">
</div>

Example (Article.htm)

<div class="default">
[Review] [ManageArticles]
<br style="clear: both" />
<div class="articleleft">
<div class="msearch-result" id="LASearchResult[moduleid]" style="display: none">
</div>
<div class="head">
<h1 class="articlename">
<a href="[Module:url]">[ArticleName]</a></h1>
[RssFeeds]
<br style="line-height: 12px; clear: both" />
<h3 class="articledescription">
[ArticleDescription]</h3>
</div>
<br />
<div class="article">
<div class="header">
<div style="padding: 18px">
<h1 class="heading">
[Article:title] [Article:edit]</h1>
<div class="metadata">
[Article:on] [Article:publishedon_monthname][Article:publishedon_day][Article:publishedon_year]
[Article:in] [Article:categories] [Article:by] <a href="[Article:authorlink]">[Article:author_displayname]</a>[Article:rating]
</div>
<div class="content noheight">
[Article:thumbnail] [Article:introduction] [Article:toc][Article:no_permission_content]
[Article:summary] [Attachments] [InlineContent]
</div>
<div class="socialnetwork inarticle">
[Article:social_network]</div>
<br style="clear: both" />
[Article:comments][Article:comments_data]
</div>
<div class="line">
</div>
<div class="footer">
<div class="right">
[Article:views_count] [Article:views]</div>
<div style="float: left; line-height: 42px;">
[Page:next_page]
</div>
</div>
</div>
<div class="article-tags">
[Article:taggedwith] [Article:tags]</div>
</div>
</div>
<div class="articleright">
</div>
</div>
 

The above markup would change to:

<div class="mytheme">
[Review] [ManageArticles]
<br style="clear: both" />
<div class="articleleft">
<div class="msearch-result" id="LASearchResult[moduleid]" style="display: none">
</div>
<div class="head">
<h1 class="articlename">
<a href="[Module:url]">[ArticleName]</a></h1>
[RssFeeds]
<br style="line-height: 12px; clear: both" />
<h3 class="articledescription">
[ArticleDescription]</h3>
</div>
<br />
<div class="article">
<div class="header">
<div style="padding: 18px">
<h1 class="heading">
[Article:title] [Article:edit]</h1>
<div class="metadata">
[Article:on] [Article:publishedon_monthname] [Article:publishedon_day][Article:publishedon_year]
[Article:in] [Article:categories] [Article:by] 
<ahref="[Article:authorlink]">[Article:author_displayname]</a>[Article:rating]
</div>
<div class="content noheight">
[Article:thumbnail] [Article:introduction] [Article:toc] [Article:no_permission_content]
[Article:summary] [Attachments] [InlineContent]
</div>
<div class="socialnetwork inarticle">
[Article:social_network]</div>
<br style="clear: both" />
[Article:comments][Article:comments_data]
</div>
<div class="line">
</div>
<div class="footer">
<div class="right">
[Article:views_count] [Article:views]</div>
<div style="float: left; line-height: 42px;">
[Page:next_page]
</div>
</div>
</div>
<div class="article-tags">
[Article:taggedwith] [Article:tags]</div>
</div>
</div>
<div class="articleright">
</div>
</div>

 

 

 

That's it! Your new theme is ready

We can now select the new theme from Manage > Administration > Basic

Categories

Glad we could be helpful. Thanks for the feedback.

Sorry we couldn't be helpful. Your feedback will help us improve this article.

How helpful was this page?

  
Updated on Tue, 27 Aug 2019 by Ashish Pachori