Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Change direction specific page

me
Contributor
February 28, 2022

How can i change direction of specific page (using modify storage format) to enable RTL on that page?

FYI:don’t want to enable rtl on whole space!

 

any idea?

 Thanks 

1 answer

0 votes
David at David Simpson Apps
Atlassian Partner
February 28, 2022
As you’re on server/DC, this could be done with a user macro that adds some CSS:

<style> #content {direction: rtl; }</style>

 

This should add the rtl direction on just the page content rather than the whole of the Confluence UI. 

me
Contributor
March 1, 2022 edited

@David at David Simpson Apps How can i do this without macro? What should i add to source of page to enable rtl?

 Thanks 

David at David Simpson Apps
Atlassian Partner
March 1, 2022

If you have the HTML macro enabled, simply add that and paste in:

<style> 
html #content {
direction: rtl;
}
</style>

This will swap the direction as required.

me
Contributor
March 2, 2022

unfortunately html not enabled, any other idea?

David at David Simpson Apps
Atlassian Partner
March 10, 2022

OK, you could try installing user macros. Ask your friendly Confluence admin. Here's one for each direction.

Right to Left:

## Macro: html-direction-rtl
## Macro title: HTML Direction RTL
## Macro has a body: N
## Body processing: n/a
## Output: HTML
##
## Developed by: David Simpson <david@davidsimpson.me>
## Date created: 2022-03-10
## Installed by: My Name
## @noparams

<style>
html #content {
direction: rtl;
}
</style>

 

Left to RIght:

## Macro: html-direction-ltr
## Macro title: HTML Direction LTR
## Macro has a body: N
## Body processing: n/a
## Output: HTML
##
## Developed by: David Simpson <david@davidsimpson.me>
## Date created: 2022-03-10
## Installed by: My Name
## @noparams

<style>
html #content {
direction: ltr;
}
</style>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events