Consider $K/ \mathbb{Q}_p$ a finite extension of the field of $p$-adic numbers. If for every such an extension $ f_K: K \to K$ is continuous can we extend these functions to $\mathbb{C}_p$? My idea was that since $x \in \mathbb{C}_p$ then $x= lim_{n \to \infty}x_n$ where $x_n$ is an element of a finite extension on $\mathbb{Q_p}$ then $$\mathbb{C}_p \subset \prod_{K/Q_p finite}K$$ the map given by the sequence $F=(f_K)_K$ is continuous since all the components are continuous. And so $F_{|C_p}$ is also continuous.
This method could work?
Your question seems not well-posed to me. User reuns seems to interpret it as:
and in his answer simultaneously restricts to the special case $\Bbb Q_p$ for the domain of $f$, but generalises to an arbitrary topological space $X$ for the codomain of $f$ and $\hat{f}$. Both the restriction and the generalisation are harmless though, and indeed this boils down to the question whether there is a continuous map $\phi: \Bbb C_p\rightarrow K$ (or in the special case $\rightarrow \Bbb Q_p$) with $\phi_{\vert K} = id_K$, which I think he indeed constructs. So the answer to that interpretation of the question is yes.
I however interpret the question differently, namely as:
The answer to this is no, for two reasons.