* Legendishaq Please I need help on how to gives my xtblog post paragraph.
I want the blog to have paragraph when reading contents.
I don't want every text contents to be close together.
The example are blow.

Please check my blog and see the problem am talking about.
2018-05-06 21:34 · (0)
* Graham * Legendishaq Add white-space: pre-wrap; to the CSS for your blog-container class
If you then find you have too many blank lines due to both <br> tags and newlines in the text
.blog-container br {display:none}
Copy code
to your CSS to render the br tags invisible
Either that or add the <p> tags to the content yourself
2018-05-07 00:03 (edited 2018-05-07 00:08 by Graham ) · (0)
* Legendishaq * Graham Sir Graham! Please help me with related blog post code.
I need that features code which I will like to added it to my xtblog.twig
2018-05-07 12:33 · (0)
* Graham * Legendishaq
Looking at your site I feel you do not need the full version of the 'related posts' as that creates a random list generated from all the tags on a post and uses a large amount of complex xtscript.
This version lists all the posts linked to the first tag associated with a post and uses no xtscript just twig and some javascript

First rename xtblog.twig to blog.twig and create a new xtblog.twig file with this code
Note: This is just the basic code to create the links
If you wish the links displayed in a certain way (like in a table) I can help you with that
{% if data.post.tags and view='entry' %}<i id="tag" style="display:none">{{  data.post.tags[0].name|default(0) }}</i>{% endif %}
{% if data.translations.t_no_entries_found == 'related'%}
{% for entry in data.entries %}
{% if data.translations.t_name not in (entry.url|split('?')[0])%}
<a class="my_links" href="{{ entry.url|replace({(data.translations.t_comment):data.translations.t_post})|split('?')[0]~'&__xtblog_block_id=1#xt_blog'}}">{{ entry.title }}</a>
{% endif %}
{% endfor %} 
{%include 'blog.twig'%}

Copy code
Add this line where the 'related post' links are to show
Note:You can add this in the blog.twig file below {% block entry_post %} or even in the normal html code for your blog page if you wish
<div id="related" style="display:none"><!----></div>
Copy code
Next add this block of javascript to your blog page anywhere below the blog function
  function related(url,cFunction) {var xhttp;xhttp=new XMLHttpRequest();xhttp.onreadystatechange = function() {if (this.readyState == 4 && this.status == 200)cFunction(this)}; xhttp.open("POST",url, true);xhttp.send();}
  function getTag(xhttp){document.getElementById('related').innerHTML =xhttp.responseText.split('<!--data-->')[1];document.getElementById('related').style.display = 'block'; }
    var dataPage='/related';
    var entry='{_$__xtblog_entry|0}';
    if (entry !=0){ 
      var tag = document.getElementById('tag').innerHTML;
      if (tag !=0){
        var url=dataPage+'?__xtblog_tag='+tag+'&entry='+entry+'&path=<xt:url type="path" />&datapage='+dataPage;
        related(url, getTag);      }

Copy code
Finally create a new blank text file named related and add this code
This file just holds the blog function used by the javascript to create the links and is coded to be invisible to search crawler bots
Note: do not edit this file with the building tool only use the code editor
<!DOCTYPE html>
<html style="display:none">
  <meta name="robots" content="noindex" />
  <xt:blog t_no_entries_found="related" t_name="{_$entry|}" t_comment="{_$datapage|}" t_post="{_$path|}"/> 

Copy code
2018-05-11 03:24 (edited 2018-05-14 01:24 by Graham ) · (0)
* sudahpernahblog * Graham I need code css like this, title in post single with color background.
i know in title home post, like thia .xt_blog_title_link, #post a but in post single, i'm dont know
2018-05-26 12:50
* Screenshot_2018-05-27-04-43-13-1.png · image/png · 26.01KB
· (0)

Online: Guests: 1