Small font size for Include Page macro text
Asked by Laura Bridges:

When I add info to a page using the Include Page macro, the text size is small. In the Excerpt page, the font size is correct, but after I include it by using the Include Page macro, it's small.

I've checked the paragraph style on the Except page to ensure some other style didn't sneak in, but the style is correct.

**How do I get the font size for the Excerpt text to be the same as the non-Excerpt text?**

I've added a screenshot to show the difference in text size. (The small font size is from the Excerpt text.)

![excerpt-font-size-diffs.png](https://community.atlassian.com/t5/image/serverpage/image-id/310078i33B7D272A05974B0/image-size/large?v=v2&px=999 "excerpt-font-size-diffs.png")


Answers:
author: Logi Helgu
body: <https://jira.atlassian.com/browse/CONFCLOUD-76400> might be the one you want to point to/watch/vote ;)


author: Jazz
body: I have submitted a request to support. We are on cloud, and it's not just the text that is being shrunk - it's also images resulting in some pretty ugly distortion.   
Hoping we can ge this sorted ASAP as we have several client facing pages displaying this way at the moment :-/

![image two squashed.png](https://community.atlassian.com/t5/image/serverpage/image-id/316204i169D82A4CC1A23A4/image-size/large?v=v2&px=999 "image two squashed.png")

comments: author: Jazz
body: This is the original page, for reference:![image one not squashed.png](https://community.atlassian.com/t5/image/serverpage/image-id/316205iCF7FC8DD35355226/image-size/large?v=v2&px=999 "image one not squashed.png")


author: Logi Helgu
body: Really annoying...just ran into this...had figured out that Excerpt was working...so I wrapped the content on my page to get it to correctly display :D and filed a bug ;)


author: Paul Velicky
body: I'm having the same issue. This bug was only recently introduced on the cloud version with the release of the left navigation expansion during page edit release.

comments: author: Laura Bridges
body: Hi [@Paul Velicky](/t5/user/viewprofilepage/user-id/1226932)

Here's a workaround: create reusable text with the Excerpt macro and give it a name, even if there's a page worth of info and the Include Page macro would be better. Then you can use the Insert an Excerpt macro to bring in the info from the named Excerpt macro and the text size is correct.

But you might've already discovered that. I just tested it and it works. It will fix the text size problem right now. (I didn't want to wait for Atlassian to fix the bug.)

Good luck!


author: Paul Velicky
body: Thank you [@Laura Bridges](/t5/user/viewprofilepage/user-id/5225476)

I will give that a try. In my case it's a challenge because I've used that feature in many places in the technical docs I have been writing for a client for the last several months. The defect really stands out. Thanks for your response and good luck to you too!


author: Humashankar VJ
body: Hi [@Laura Bridges](/t5/user/viewprofilepage/user-id/5225476) -

Try to Set conditions with in the Div macro

Find parameters in the Div macro to set conditions for when the content inside the Excerpt macro

Sample one for your use

{div:class=my-div\|condition=true}  
{excerpt:name=MyContent}  
This is the content I want to reuse.  
{/excerpt}  
{div}

{div:class=my-div\|condition=true}: This Div macro includes a condition parameter. kindly make out true with any condition that evaluates to true or false

{excerpt:name=MyContent}- This is where you specify the name of the Excerpt macro you want to include. In this case, it's "MyContent"

By covering the Excerpt macro with the Div macro and setting conditions, you can control when and how the content is displayed or styled on your Confluence page

Make use of the below blog for more help:

[Excerpt Include Macro \| Confluence Data Center 8.8 \| Atlassian Documentation](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html)

Hope this helps - Happy to help further!!  
Thank you very much and have a great one!

Warm regards

comments: author: Laura Bridges
body: [@Humashankar VJ](/t5/user/viewprofilepage/user-id/5409474) I'm working in Confluence Cloud, so can't wrap the Excerpt macro source in a \<div\> tag.

Back when I was on DC and had the Source Editor plugin, this would've been a snap. Thanks anyway for your help.


author: Humashankar VJ
body: Hi [@Laura Bridges](/t5/user/viewprofilepage/user-id/5225476)

Ah, I see, thanks for clarifying.

In Confluence Cloud, you can't directly change the way content looks by writing HTML code like you could with a plugin in Confluence Data Center.

Instead, you have to use the tools and options provided by Confluence itself. While this means you might not have as much control over the appearance of your content, you can still do a lot with what's available.

If you need more advanced features or customization, you might need to look for add-ons or apps at this time.

Warm regards


author: Paul Velicky
body: [@Humashankar VJ](/t5/user/viewprofilepage/user-id/5409474) this defect was only recently introduced in Confluence Cloud and unfortunately greatly detracts from the aesthetics of the page. Having implemented 'include page' over hundreds of pages this is really a more severe issue than it might appear.

Do you know if a defect has been opened for this with Atlassian and if not, can you point me to directions on how to open one?

Thank you for your help.

Paul


author: Humashankar VJ
body: Hi [@Paul Velicky](/t5/user/viewprofilepage/user-id/1226932)

To report a Bug, Customers with a commercial support license should raise a support case with [Atlassian Support](https://support.atlassian.com/). They will work with you directly to collect the details Development needs and craft a detailed Bug report so it has the best opportunity to be fixed.

Other Customers should ask a question here on the Community site. When the nature of the problem is clear, an Atlassian will either raise a Support request for you or report the Bug at [jira.atlassian.com](http://jira.atlassian.com/).


author: Humashankar VJ
body: Kindly try a solution to adjust the font size. Simply insert a Div macro within your Excerpt macro and place your content within this Div macro.

Then, include 'font-size: 12px;' (or your preferred size) in the Style parameter of the Div macro to modify the font size accordingly.

Hope this helps - Happy to help further!!  
Thank you very much and have a great one!

Warm regards

comments: author: Laura Bridges
body: Hi [@Humashankar VJ](/t5/user/viewprofilepage/user-id/5409474) and thanks for the assist. However, I'm on Confluence Cloud, and looking at the [macros list for DC and cloud](https://support.atlassian.com/confluence-cloud/docs/what-are-macros/), there isn't a Div macro listed.

If I've got this wrong and you know where to find the Div macro on Confluence Cloud, please add details about where I can find the Div macro.

Thanks!


Tags: cloud

confluence-cloud