Skip to content

Commit 26b4616

Browse files
Updated link.php & Stop loading font family if more then one
1 parent f6e8693 commit 26b4616

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

astroid/astroid-template-zero/frontend/header/menu/link.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
$validonepagelink = strpos($item->link,"#");
104104
if($validonepagelink == '0' && (strlen($item->link) > 1)){
105105
// Default we assume that you only want the one page for the homepage. If you want one page to work on other pages, please go ahead and hard code the full page URL i.e. https://yoursite.com/pageurl#onepageblockid
106+
// $item->link = JURI::root().$item->link;
106107
$item->link = JURI::root().$item->link;
107108
}
108109
}

astroid/astroid-template-zero/frontend/typography.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
}
169169

170170
// Let's add combined style sheet here
171-
$ast_fontfamily_list = implode("|", str_replace(" ", "+", $ast_fontfamily));
171+
$ast_fontfamily_list = implode("|", str_replace(" ", "+", array_unique($ast_fontfamily)));
172172
if ($in_head) {
173173
$document = JFactory::getDocument();
174174
if (!empty($ast_fontfamily_list)) {

0 commit comments

Comments
 (0)