I wanted to include 2 websites in my resume which I am making using moderncv but it seems it allows only one website. How to show 2 websites in the header (showing the website icon for both)? I am using moderncv's banking style.

  • Welcome to TeX.SX! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – Adam Liter
    Feb 26, 2014 at 4:17
  • I don't know what code to write, hence this question
    – pratnala
    Feb 26, 2014 at 8:13
  • No worries! It looks like you got an answer anyway. But what an MWE is supposed to do is provide a basis for anyone who might try to help you. So even, in this case, putting together an MWE with just the one website and then indicating that you somehow want to have two websites would have been helpful, so that anyone who tries to help you doesn't have to go through that process her-/himself.
    – Adam Liter
    Feb 26, 2014 at 17:23
  • Ah ok. Got it! :)
    – pratnala
    Feb 27, 2014 at 7:59

2 Answers 2


The following solution provides a general approach to adding two homepages and requires the following addition to your moderncv preamble:

\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\patchcmd{\maketitle}% <cmd>
  {\ifthenelse{\isundefined{\@homepage}}{}{\addtomaketitle{\homepagesymbol\httplink{\@homepage}}}}% <search>
   \ifthenelse{\isundefined{\@homepageB}}{}{\addtomaketitle{\homepagesymbol\httplink{\@homepageB}}}}% <replace>
  {}{}% <success><failure>

With the aid of etoolbox, the banking style \maketitle macro is patched to insert two homepages. These homepages are specified using \homepageA and \homepageB, which use a similar interface to the original \homepage (which now doesn't get used anymore).

enter image description here

This approach translates directly to the use of emails as well via the following set of instructions:

\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\patchcmd{\maketitle}% <cmd>
  {\ifthenelse{\isundefined{\@email}}{}{\addtomaketitle{\emailsymbol\emaillink{\@email}}}}% <search>
   \ifthenelse{\isundefined{\@emailB}}{}{\addtomaketitle{\emailsymbol\emaillink{\@emailB}}}}% <replace>
  {}{}% <success><failure>

Now two email addresses are specifier via \emailA and \emailB, respectively:

enter image description here

  • Can the same method be followed for 2 email addresses?
    – pratnala
    Jul 15, 2014 at 13:52
  • 1
    @pratnala: I've updated my answer to reflect this...
    – Werner
    Jul 16, 2014 at 6:30

To add an extra hompage there is a much easiers way, like this:

  • 3
    Definitely much simpler! One ought to note though that you are only allowed one extrainfo{} command.
    – ChrisR
    Mar 26, 2017 at 3:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .