Council Leader John McGinty officially opened the new learning spaces at Simpson Primary School in Wester Inch, Bathgate, recently.
Pupils from the school put on a special opening ceremony called 'Watch this Space', using music, video and presentations to demonstrate the positive impact of the new pavilion's flexible spaces on their learning.
West Lothian Council's development partner Hub South East delivered the project, with Morrison Construction as the main contractor.
Council Leader John McGinty said: "I am delighted to officially open the new learning pavilions at Simpson Primary School.
"This £2 million investment in additional and flexible spaces to promote learning will clearly be of huge benefit to the school and its pupils.
"Simpson is a popular school in a growing area, and the additional space will help the school cope with the increasing demand for places from local families in the catchment area.
"West Lothian already has one of the best school estates in Scotland, and we aim to continue investing in the infrastructure required to support pupils to achieve their full potential."
Simpson headteacher Arlene Black added: "It's important that children have the space they need for their learning.
"These fantastic pavilions will give us the room we need to give Simpson pupils the best possible educational experience."
The single-storey pavilions, which are joined by colourful rainbow canopy, will provide space for eight additional classrooms in the popular school. The school role at Simpson was just 70 pupils when it first opened in 2007, and is expected to rise to around 700 later this year.
Scott Braid, Commercial Manager for Hub South East Scotland, said: "I'm delighted to be marking the official opening of Simpson Primary's new pavilions, a West Lothian Council project delivered on time and on budget by Hub South East.
"We are proud to be playing our part in finding innovative solutions to assist the council with the issue of increasing school rolls and it's fantastic to see how impressed staff and pupils are with their new accommodation."
Billy Gray, Senior Framework Manager for Morrison Construction, added: "We're proud to have played our part in the delivery of these additional classrooms and we are glad the pupils and staff are enjoying their first academic year in the brand new facilities.
"We look forward to continuing this positive working relationship on future developments with Hub South East Scotland and West Lothian Council."