senxios
December 27, 2021, 6:08pm
1
Hi, is it possible to add ads to the right side of my blog page as there is a lot of empty space, is there any sort of code that I can add to move pictures or ads there?
This is the page link https://senxios.com/blogs/articles/a-complete-beginners-guide-to-pc-bottlenecks-and-how-to-stop-them-forever
And the theme that I am using is called Motion.
Thank you for your help.
@senxios
yes please check theme setting it allow do show side bar
senxios
December 27, 2021, 7:08pm
3
Hi, my theme doesn’t allow it, is there coding options to do it?
oh sorry if doesn’t allow this it can be done custom code
senxios
December 27, 2021, 7:37pm
5
do you have any idea what custom Code I could use? I have got an app to display ad images and links, and I have added its Code to the Article-template.liquid page but I don’t know how to align it right. I am thinking of doing something in CSS but I am not sure. Any ideas?
do you have side bar code?
senxios
December 27, 2021, 8:42pm
7
this is the code that I want to add to the side bar.
This will add the ads but I need it to align it to the right side.
@senxios
yes please share blog page code so i will update
senxios
December 28, 2021, 11:50am
11
{%- liquid
assign number_of_comments = article.comments_count
if comment
assign number_of_comments = article.comments_count | plus: 1
endif
-%}
{{ 'blogs.article.back_to_blog' | t: title: blog.title }}
{% schema %}
{
"name": "Article pages",
"settings": [
{
"type": "checkbox",
"id": "blog_show_image",
"label": "Show article image",
"default": true
},
{
"type": "checkbox",
"id": "blog_show_tags",
"label": "Show tags",
"default": true
},
{
"type": "checkbox",
"id": "blog_show_date",
"label": "Show date",
"default": true
},
{
"type": "checkbox",
"id": "blog_show_comments",
"label": "Show comment count",
"default": true
},
{
"type": "checkbox",
"id": "blog_show_author",
"label": "Show author"
},
{
"type": "checkbox",
"id": "social_sharing_blog",
"label": "Show social sharing buttons",
"default": true
}
]
}
{% endschema %}
senxios
December 30, 2021, 8:34pm
12
Are you still working on a solution sir?
@senxios
this code are blog listing or blog details?
senxios
December 31, 2021, 10:17am
14
this code is for article-template.liquid, so you need a different one?
senxios
December 31, 2021, 11:36am
16
{%- paginate blog.articles by 5 -%}
{%- render 'breadcrumbs' -%}
{%- assign is_even_post = false -%}
{%- for article in blog.articles -%}
{% comment %}Set the next post as an even one{% endcomment %}
{%- liquid
if is_even_post
assign is_even_post = false
else
assign is_even_post = true
endif
-%}
{%- endfor -%}
{%- if paginate.pages > 1 -%}
{%- render 'pagination', paginate: paginate -%}
{%- endif -%}
{%- endpaginate -%}
{% schema %}
{
"name": "Blog pages",
"settings": [
{
"type": "checkbox",
"id": "blog_show_tag_filter",
"label": "Show tag filter"
},
{
"type": "checkbox",
"id": "blog_show_rss",
"label": "Show RSS link"
},
{
"type": "checkbox",
"id": "blog_show_tags",
"label": "Show tags"
},
{
"type": "checkbox",
"id": "blog_show_date",
"label": "Show date",
"default": true
},
{
"type": "checkbox",
"id": "blog_show_comments",
"label": "Show comment count",
"default": true
},
{
"type": "checkbox",
"id": "blog_show_author",
"label": "Show author"
}
]
}
{% endschema %}
Is this what you are looking for?
@senxios
thank all code where’s your add code?
@senxios
great thanks, we have try code copy past but mix up if possible to give me staff account theme access!
Could you send me a collaborator request for my account, my website is senxios.myshopify.com , thank you