diff --git a/docs/data/rpc/api-reference/methods/getTransaction.mdx b/docs/data/rpc/api-reference/methods/getTransaction.mdx
index 2f2269ee64..3950fb5f39 100644
--- a/docs/data/rpc/api-reference/methods/getTransaction.mdx
+++ b/docs/data/rpc/api-reference/methods/getTransaction.mdx
@@ -12,7 +12,6 @@ import { RpcMethod } from "@site/src/components/RpcMethod";
The example above is querying details of a transaction using RPC methods directly. If you are using the Stellar SDK to build applications, you can use the native functions to get the same information.
-
```python
@@ -73,4 +72,3 @@ public class GetTransactionExample {
```
-
diff --git a/docs/data/rpc/api-reference/methods/sendTransaction.mdx b/docs/data/rpc/api-reference/methods/sendTransaction.mdx
index e413de5166..da83692142 100644
--- a/docs/data/rpc/api-reference/methods/sendTransaction.mdx
+++ b/docs/data/rpc/api-reference/methods/sendTransaction.mdx
@@ -12,8 +12,6 @@ import { CodeExample } from "@site/src/components/CodeExample";
The example above is sending a transaction using RPC methods directly. If you are using the Stellar SDK to build applications, you can use the native functions to get the same information.
-
-
```python
@@ -136,4 +134,3 @@ public class SendTransactionExample {
```
-
diff --git a/src/theme/ApiItem/index.js b/src/theme/ApiItem/index.js
index 5da5eedae0..476c2f0518 100644
--- a/src/theme/ApiItem/index.js
+++ b/src/theme/ApiItem/index.js
@@ -5,6 +5,7 @@ import DocItem from '@theme-original/DocItem';
export default function ApiItemWrapper(props) {
if (
props.location?.pathname?.includes('api-reference')
+ && !props.location?.pathname?.includes('rpc')
) {
return (
<>