Vega Pro

One page theme with Blog, Pages, Translations, Contact form and more

Back to Vega Pro Support

VakisP
VakisP

With the initial build of the Vega Vega Pro Themes the highlighting of the menu items on the home page do not work correctly. I have managed to correct this by:

a) Adding the "section" class to the intro.htm page so that it is recognised by the javascript. b) Change function isScrolledIntoView(elem) in vega-wp.js to the following code as the existing code was not working as expected:

function isScrolledIntoView(elem) { var $ = jQuery; var docViewTop = $(window).scrollTop(); var docViewBottom = docViewTop + $(window).height();

var elemTop = $(elem).offset().top;
var elemBottom = elemTop + $(elem).height();

return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));

}

Not sure if this was the right thing to do but seems to be working fine now, feedback if this is the right thing to do would be appreciated.

Thanks,

VP

Last updated

Vojta Svoboda
Vojta Svoboda

Is this problem present also at http://demo.lyrathemes.com/vega/? I'm just wondering if this is some kind of problem solved in recent theme updates, or not. Thanks

VakisP
VakisP

Hi Vijta,

No that seems to be working ok but thats not octoberCMS, I think thats wordpress.

Thanks,

Vakis

1-3 of 3