Broke my site attempting to change H1

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
earcandy
Forum Members
Forum Members
Posts: 58
Joined: Sat Jan 11, 2014 4:37 pm

Broke my site attempting to change H1

Post by earcandy »

Californiaschooloflaw.com is showing “Centrix” to Google as our H1 tag.

I went into the global content block “header”

I changed “Centrix” to “Online Law School and clicked apply.

Image



It screwed up the menu:
Image


So I changed “online law school” in the header back to Centrix exactly as it was.

This did not revert things back.

Can anyone please explain what I’ve done incorrectly here and how to fix it? I wouldn’t have though just changing the h1 tag would have had this effect, and would really like to understand how I can get rid of that Centrix tag once and for all.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Broke my site attempting to change H1

Post by JohnnyB »

Just changing text would not do that. Something else may have been accidentally modified...
You can post the HTML code from the Global content block since the change.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
earcandy
Forum Members
Forum Members
Posts: 58
Joined: Sat Jan 11, 2014 4:37 pm

Re: Broke my site attempting to change H1

Post by earcandy »

I did post it above. In fact the text in the GCB is the only thing that was changed.

But here is the menu text of which I changed nothing.

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}

{assign var='number_of_levels' value=10000}
{if isset($menuparams.number_of_levels)}
  {assign var='number_of_levels' value=$menuparams.number_of_levels}
{/if}

{if $count > 0}
<ul class="sf-menu">
{foreach from=$nodelist item=node name=menuitem}
{assign var=next_index value=$node->index+1}
{if $node->depth > $node->prevdepth}
{repeat string='<ul class="unli">' times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string='</li></ul>' times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}

{if $node->parent == true or $node->current == true}
  {assign var='classes' value='menuactive'}
  {if $node->parent == true}
    {assign var='classes' value='menuactive menuparent'}
  {/if}
  {if $node->children_exist == true and $node->depth < $number_of_levels}
    {assign var='classes' value=$classes|cat:' parent'}
  {/if}
  <li id="{$node->alias}" class="{$classes}{if $nodelist[$next_index]->depth < $node->depth} last{/if}"><a class="{$classes}" 
{elseif $node->type == 'sectionheader' and $node->haschildren == true}
  <li id="{$node->alias}" class="menuparent{if $nodelist[$next_index]->depth < $node->depth} last{/if}"><a class="menuparent"><span class="sectionheader">{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}
  <li id="i{$node->alias}"><a><span class="sectionheader">{$node->menutext}</span></a>
{elseif $node->type == 'separator'}
  <li id="{$node->alias}" style="list-style-type: none;"> <hr class="menu_separator" />
{elseif $node->children_exist == true and $node->depth < $number_of_levels and $node->type != 'sectionheader' and $node->type != 'separator'}
  <li id="{$node->alias}"class="menuparent{if $nodelist[$next_index]->depth < $node->depth} last{/if}"><a class="menuparent" 
{else}
  <li id="{$node->alias}"{if $nodelist[$next_index]->depth < $node->depth} class="last"{/if}>
  <a 
{/if}

{if ($node->type != 'sectionheader' and $node->type != 'separator') or $node->parent == true or $node->current == true }
 {if $node->target}target="{$node->target}" {/if}
href="{$node->url}"><span>{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string='</li></ul>' times=$node->depth-1}
</li>
</ul>
{/if}
earcandy
Forum Members
Forum Members
Posts: 58
Joined: Sat Jan 11, 2014 4:37 pm

Re: Broke my site attempting to change H1

Post by earcandy »

I figured out the issue is with the menu so I'll post a new thread directly about that. You are correct that this simple text change should have not cause a problem. Thank you.
Post Reply

Return to “Layout and Design (CSS & HTML)”