# Footnotes appear on a new paragraph?

**URL:** <https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464>\
**Category:** Using Themes\
**Tags:** footnotes\
**Created:** [May 21, 2023, 6:34pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464 "2023-05-21T18:34:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Champagne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/alexandre_champagne/32/12640_2.png) [@Alexandre\_Champagne](https://discourse.gohugo.io/u/Alexandre_Champagne)\
**Post date:** [May 21, 2023, 6:34pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464/1 "2023-05-21T18:34:49Z")

</div>

Hi,

I’m relatively new to Hugo/CSS and have been trying to set-up a new website for academic purposes. However the footnotes towards the end of the page appear in a very weird way:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/9/2/9206dba6b258e327950e784a4da595626abb2e13.png)

I’ve already searched inside this forum and elsewhere and can’t find anything useful. I’ve searched for any place inside the theme (called [itheme](https://github.com/floyd-li/hugo-theme-itheme)) which would customize footnotes and there’s almost nothing.

If I look at the source code for the footer it looks like this:

```auto
<li id="fn:1">
<p class="component-content component">footnote text&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:2">
<p class="component-content component">footnote text&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol></div>

```

So apparently footnotes appear inside their own paragraph(?). Is this a bug?

I’ve tried fixing this with CSS but I’m out of solutions for now.

Thanks.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [May 21, 2023, 6:55pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464/2 "2023-05-21T18:55:33Z")

</div>

> [@Alexandre\_Champagne](#):
>
> Is this a bug?

No.

Please raise an issue with the theme author:  
[https://github.com/floyd-li/hugo-theme-itheme/issues](https://github.com/floyd-li/hugo-theme-itheme/issues)

---

<div class="post-metadata">

**Author:** ![Tom\_Durand](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tom_durand/32/14460_2.png) [@Tom\_Durand](https://discourse.gohugo.io/u/Tom_Durand)\
**Post date:** [May 21, 2023, 6:57pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464/3 "2023-05-21T18:57:31Z")

</div>

> [@Alexandre\_Champagne](#):
>
> I’ve already searched inside this forum and elsewhere and can’t find anything useful. I’ve searched for any place inside the theme (called [itheme](https://github.com/floyd-li/hugo-theme-itheme)) which would customize footnotes and there’s almost nothing.

Here is where they customize footnotes: in single.html

> \<div class=“pagebody”\>  
> \<!-- TODO: hugo render hooks do not support custom markdown so here replace element manually →   
> {{ $content := .Content | replaceRE “\<p\>” “\<p class="component-content component"\>” }}

I dunno why, but it’s the theme’s doing.  
to not disrupt it I would just add

```auto
.footnotes {
    p.component-content.component { display:inline}}

```

---

<div class="post-metadata">

**Author:** ![Alexandre\_Champagne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/alexandre_champagne/32/12640_2.png) [@Alexandre\_Champagne](https://discourse.gohugo.io/u/Alexandre_Champagne)\
**Post date:** [May 21, 2023, 6:57pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464/4 "2023-05-21T18:57:46Z")

</div>

Right, thank you @jmooring!

---

<div class="post-metadata">

**Author:** ![Alexandre\_Champagne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/alexandre_champagne/32/12640_2.png) [@Alexandre\_Champagne](https://discourse.gohugo.io/u/Alexandre_Champagne)\
**Post date:** [May 21, 2023, 6:59pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464/5 "2023-05-21T18:59:11Z")

</div>

Thank you @Tom_Durand, will look into that!

---

<div class="post-metadata">

**Author:** ![Alexandre\_Champagne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/alexandre_champagne/32/12640_2.png) [@Alexandre\_Champagne](https://discourse.gohugo.io/u/Alexandre_Champagne)\
**Post date:** [May 22, 2023, 3:20pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464/6 "2023-05-22T15:20:19Z")

</div>

I had to modify slightly the syntax but this indeed seems to work:

```auto
.footnotes p.component-content.component {
	display:inline;
}

```

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [May 24, 2023, 3:20pm UTC](https://discourse.gohugo.io/t/footnotes-appear-on-a-new-paragraph/44464/7 "2023-05-24T15:20:53Z")

</div>

Closed on May 24, 2023, 3:20pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
