Custom Attribute with custom Source is not appearing in Layered Navigation Magento1

I have created several attributes and want now to filter on them.

I create the attributes with these values:

$  defaults = [     'required' => false,     'comparable' => true,     'filterable' => true,     'filterable_in_search' => true,     'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,     'is_configurable' => false,     'is_html_allowed_on_front' => true,     'searchable' => true,     'unique' => false,     'used_for_sort_by' => true,     'used_in_product_listing' => true,     'user_defined' => true,     'visible' => true,     'visible_on_front' => true,     'visible_in_advanced_search' => true, ]; 

and also specify the respective attribute with this:

'cut' => [         'type' => 'varchar',         'input' => 'select',         'label' => 'Cut',         'group' => MyCustom_Catalog_Helper_Data::EAV_ATTRIBUTE_GROUP_NAME,         'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,         'source' => 'mycustom_catalog/product_attribute_source_cut'     ] 

Both arrays are getting merged correctly while creating the attributes.

In the source model, I have declared getFlatColumns() and getFlatUpdateSelect() like this:

public function getFlatColums() {     $  attributeCode = $  this->getAttribute()->getAttributeCode();     $  column        = [         'unsigned' => false,         'default'  => null,         'extra'    => null,     ];      if (Mage::helper('core')->useDbCompatibleMode()) {         $  column['type']    = 'varchar';         $  column['is_null'] = true;     } else {         $  column['type']     = Varien_Db_Ddl_Table::TYPE_VARCHAR;         $  column['nullable'] = true;         $  column['comment']  = '';     }      return [$  attributeCode => $  column]; }  public function getFlatUpdateSelect($  store) {     return Mage::getResourceSingleton('eav/entity_attribute')         ->getFlatUpdateSelect($  this->getAttribute(), $  store); } 

If I edit my products now and set the filter for cut, I can see the data being in the Flat Table, however the Value does not appear in catalog_product_index_eav.

I have reindexed all indexers after every new try and also cleared the cache.

Objective: I want to have the Attribute being filterable and visible in the Filter Layered Navigation.

What am I doing wrong?

How to hide the navigation appearing on Communication site

I have a Communication site that is set as hubSite and there are some team sites created and linked with the hub site.

So i am seeing two types of navigation. One is the HubSite navigation and other is the navigation for communication site showing Home, documents, pages, site contents and Edit. See screenshot below.

enter image description here

I am using modern script editor web part to inject css, I have tried below:

a[href="/sites/**/Shared Documents/Forms/AllItems.aspx"]{ display:none; } a[href="/sites/**"]{ display:none; } a[href="/sites/**/SitePages/Forms/ByAuthor.aspx"]{ display:none; } a[href="/sites/***/_layouts/15/viewlsts.aspx"]{ display:none; } #HorizontalNav7EditLink{display:none;} 

Above css helps me hide Home, Documents, Pages, Site contents link and edit as well, once I reload the page, Edit comes back, upon checking from developer tools, ID for edit link keeps on changing so unable to hide that.

Can someone please help me with appropriate css class to hide the Edit button. Again from the hub navigation on the very top, I do not want to hide Edit button. Just from the second nav, thanks in advance.

Modern communications site child items on navigation shows up on a wider grid

I have a communication site set as hub site and have team sites linked to it. I added child links to one of the team site links and below are the screenshots for the same.

enter image description here

Upon hovering over Operations, I see below big banner. I have modern script editor web part added so was wondering to make this look smaller and nicer by overriding some css classes.

enter image description here

Can someone please provide with css code that I can leverage. FYI, I tried leveraging ms-MegaMenu-Callout root-360 and withDivider ms-MegaMenu-gridLayout classes and set max-width parameter from 1200 px to 120 but did not work for me, it works when tested with developer tools by providing some inline css but when adding it to script editor web part, it sort of does not work.

Please help, thanks in advance.

Sharepoint Hosted App- Get HostwebUrl and AppwebUrl on navigation

Can anyone provide a sample code for getting HostWebUrl and AppWebUrl when redirect from Default page to another page. How can we do this ? I am using the following code its work for Default but not for another page-

hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl"));  var scriptbase = hostweburl + "/_layouts/15/";  var context = new SP.ClientContext(appweburl);   appContextSite = new SP.AppContextSite(context, hostweburl); web = appContextSite.get_web(); 

Navigation menu problem

When you move the mouse down on the navigation menu on my company's website it often jumps to the next navigation column. If you hold the cursor over the dropdown word for a few seconds it works much better. Any ideas why this is happening? I added a link to a video so you can see the problem.