Jane_Jojo
(Jane Jojo)
March 12, 2023, 8:59pm
1
Context:
I use discourse as the commenting system and here’s an example
[IMG_1857]
When you look at it from a mobile, you can see the content outside of the viewport.
How can I fix it to be responsive?
Here’s the code I use
<div id="comments" class="ct-post-end-section">
<div id='discourse-comments'></div>
<script type="text/javascript">
DiscourseEmbed = { discourseUrl: 'https://comments.alittlebitofspice.com/',
discourseEmbedUrl: '<?php echo get_permalink(); ?>' };
(…
Been a long-time happy user, but over time I learned that not having an active NATIVE commenting system impacts SEO for food bloggers. With an IFRAME embed, Google does NOT recognize the discourse comment for each blog post to be its own content. After four years of running the commenting system, it’s bit me hard, especially when Google is looking for freshness activity indicators.
Has someone thought about a solution for this?
1 Like
@Jane_Jojo I use Discourse AS my blogging platform…
You can see my method here…
An alternative to Page Publishing - another method is to use CSS to remove the unwanted elements on a regular Topic Post, while preserving all of the functionality (i.e. Javascripts in installed Theme Components, and CSS styling, etc.)
Tags in the composer can be used to selectively apply formatting to a specific Topic Post.
For example, on my site I achieve this by pasting the following CSS into my theme’s CSS in the Common tab:
/********************** REMOVE THINGS FROM LAYOUT USING TAGS **…
And you can see my site here…
This is a place for sharing innovations and conversations about simplifying. I am eager to simplify. I revisit, rework, and reinvent everything, continuously, in my mission to simplify, and to recognize and remove barriers.
2 Likes