David I granted the chapel at Corstophine to Holyrood Abbey in 1128. By 1158, it had become a church, with altars to Saint Anne and the Holy Trinity.
A burial chapel was added to the church in 1404 by Sir Adam Forrester, who died by 1405. The chapel was dedicated to John the Baptist. The chapel was erected into a collegiate church by his son Sir John Forrester.
The foundation of the current church (on the inner eastmost wall) says the church was built in 1429 in the same churchyard as the earlier parish church, and was completed by 1437. The sandstone church was built with a tower and stone, octagonal spire, rectangular chancel, and a nave with transepts. This included the absorption of earlier Gothic features from the previous building and the erection of the characteristic barrel vaults, which may have concluded by 1436.
In 1634, the collegiate church was dissolved and in 1646 the building became the parish church. At that time the 12th-century church was razed and a new aisle was added to the collegiate fabric.Stones from the former church were used to built the porch. In 1828, a restoration by architect William Burn resulted in a two-storey sacristy, renovation of the nave, removal of a 17th-century aisle, and building of a new aisle and transept.
The nave of the church showing the concrete vaults, which replaced the original stone vaults in 1905.
The church has Scottish heraldic panels and pre-Reformation relics. James Ballantine supplied the Victorian stained glass and Gordon Webster and Nathaniel Bryson supplied the 20th-century windows. Leonardo da Vinci's Last Supper was the inspiration for the heads on the carved corbels made by William Birnie Rhind. On the grounds are a war memorial, vault and gatehouse, surrounded by a boundary wall and cast iron gates.
References:Celje Castle was once the largest fortification on Slovenian territory. The first fortified building on the site (a Romanesque palace) was built in the first half of the 13th century by the Counts of Heunburg from Carinthia on the stony outcrop on the western side of the ridge where the castle stands. It had five sides, or four plus the southern side, which was a natural defence. The first written records of the castle date back to between 1125 and 1137; it was probably built by Count Gunter. In the western section of the castle, there was a building with several floors. Remains of the walls of this palatium have survived. In the eastern section, there was an enclosed courtyard with large water reservoirs. The eastern wall, which protects the castle from its most exposed side, was around three metres thicker than the rest of the curtain wall. The wall was topped with a parapet and protected walkway.