Web parts are having theme issues?

The company I work for has a SharePoint Online communication page. We have different departments sites such as HR, Marketing, IT, Business Development, etc.

We have this blue theme background set for all our sites:

enter image description here

Let’s say our HR site, we have a few web parts (Library) and when we click on it our current theme is applied.

enter image description here

However, we have this issue in some of our other sites like IT and Business Development that when you click on some web part we have a blue background:

enter image description here This is Our Business Development page when I click on the Business Development News web part I got the blue background issue below:

enter image description here

enter image description here

Any ideas, why the current theme is not being applied properly to some web parts. We had checked the composed look settings of each site and everything is configured the same way as the HR page. We have some custom CSS that we created for each site. We checked the HR site master pages, the custom CSS link is being called in, the same way in our IT and Business Development sites.

Any suggestions would be greatly appreciated. Thank you!

How can I get an image map to highlight various parts with mouse hover?

I am using SharePoint 2010 and I’m trying to use javascript and html to create an image map that highlights different sections of the image depending on where the cursor hovers over. In this case I’m actually using a literal map (one of Australia) and want the different states to highlight as the mouse pointer hovers over them.

I’ve used image maps many times in the past within SharePoint 2010, just by using basic html, but this is the first time I’ve tried to use one that highlights part of the image as it’s being hovered over.

This is the approach I’m using:

  • I’ve inserted a Content Editor web part into a wiki page

  • The code I’m using tries to achieve this effect by using multiple images.

  • One image is the map of Australia (all in one colour with a transparent background). This entire image is the ‘background’ image that appears when you first load the page or when there’s no mouse pointer over it.

  • The other eight images are identical except that the state/territory I want highlighted is in a different colour (to create the highlight effect).

At present, the code I’m using is loading the images, and when I hover over the state/territory the cursor recognises the link.

The problem is that all images are being loaded on the page separately (i.e. one below the other) and therefore there’s no highlighting effect taking place. That is, I see all images simultaneously.

Here is the code I’m using:

<script type="text/javascript"> $  (document).ready(function() {      $  (".map-areas area").mouseenter(function() {         var idx = $  (".map-areas area").index(this);         $  (".map-hovers img:eq(" + idx + ")").show();         return false;     });     $  (".map-hovers img").mouseleave(function() {         $  (".map-hovers img").hide();         return false;     });  });</script>  <div id="container"> <img width="528" height="467" class="map-trans" alt="Map / Carte" src="/GASites/ITXCommunicationsExchange/SiteAssets/Site%20Pages/TEST/Maps_australia_Transparent.png" border="0" usemap="#states"/>  &#160;  <div class="map-hovers"><img width="528" height="467" alt="QLD" src="/GASites/ITXCommunicationsExchange/SiteAssets/Site%20Pages/TEST/AustraliaImageMapQLD.png"/> <img width="528" height="467" alt="NSW" src="/GASites/ITXCommunicationsExchange/SiteAssets/Site%20Pages/TEST/AustraliaImageMapNSW.png"/> </div></div> <map name="states" class="map-areas" id="states"><area href="#d0" shape="rect" coords="352,0,520,230" alt="QLD"/><area href="#d1" shape="rect" coords="352,235,520,340" alt="NSW"/></map> 

Note: – In the code above I’ve only loaded some of the images while testing.

QUESTIONS:

  • Since I’m not very good with javascript, and only average with html, I’m wondering if I’ve missed something obvious?

  • Can anyone offer any other suggestions, either on how I can get this to work or how else I might achieve what I’m trying to do?

NOTES:

1 At the organisation I’m trying to do this for we do not have access to SharePoint Designer, so any suggestions involving that will be unusable for me.

2 Finally, it really was a flip of the coin in terms of whether I posted this here or on Stack Overflow. I opted for here since I am trying to get this to work within SharePoint 2010, but if the view is that this should be migrated, please let me know and I’ll delete this and post it there instead.

Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme

When I’ve built static sites in the past I’ve had an includes folder and used php if I’ve needed to repeat components / HTML over different pages.

I’ve noticed in WordPress that this functionality is undertaken with a template-parts folder which seems to do the same thing.

I’m about to start building a custom theme for the 1st time and my question is, is there a reason why I should use template-parts and if I use an includes folder will there be any negatives to this?

Many thanks

What parts does a design system have, how to support development? some documentation with step by step examples uu

I’m just starting in the world of ux, I would like to know what a design system has I have read but I still don’t understand, the only thing I have been able to do is create some components in figma and choose the letter size and message tables but nothing more, I don’t know how to make the grid , so: c I would like to know about the experience of those who have built a design system I want to be able to help the front end. thanks in advance 🙂

how to use media queries with javascript in my web parts – classic mode

I have a site that is using the pnp responsive and the webparts are responsive. But i’m using a jquery (easypaginate.js) in the webpart.

When i resize my webpart how can i dynamically change the step option to show only 3 li items when i resize the screen to let say 500px using (media queries) @media (max-width: 500px)

Below is the default setting options

$  ('ul#items').easyPaginate({         step:7,         nextprev:false,         numeric:true     });  } 

I want the step to be 3 when i go on a smaller screen. Thanks in Advance

How can I adjudicate the dismantling of monsters for parts?

I’m planning a GURPS 4e game in a scenario that uses monster parts as material for weapons and armors. After searching my books, however, I couldn’t find a proper way to dismantle monsters (or even animals).

Does GURPS 4e have a skill (or group of skills) suitable for dismantling? If it does, which one(s)? If not, how can it be done?

Users expected to “ignore” irrelevant parts of a form?

I have a web form that is split in to several pages, it is an adaptation from a hard copy paper form, and the requirements are that the data captured should be the same.

For my web form I have asked for the users salutation/firstname/surname, I must also capture if they have a previous name.

The next page asks for their address, and also a previous address.

One thought that has been put forward is that most users won’t have a previous name, so this field is largely redundant and therefore wouldn’t need to be shown by default.

However, in my mind, if you are asking the user to action something “if” they have a previous name, then you are increasing the cognitive load, when it would actually just be easier to ignore the part of the form that isn’t relevant?

I will try and show you what I mean…

Which one is better user experience? A or B?

Or, Perhaps it would be better to do some user testing to find out? Would a simple user test be the best way to find out what works best?

Two Highlighted Content web parts side by side

I have created a new page where I have added a highlighted content web part linked to one of my document libraries and it filters by most viewed files. I want to add another highlighted content web part linked to the same library but this time showing the trending items of that library.

Can I move the content web parts so they are side by side ? I want them to have this format. (webparts side by side) enter image description here

As it for now it looks something like this

enter image description here

Divide directed weighted graph into two parts

I have a directed, weighted graph $ G = (E,V)$ . For example, one might be $ |E| = 74000, |G| = 725$ .

I want to divide this graph into two parts/clusters/communities, taking the edge weights into account.

I researched several methods, but the problem is that either they automatically detect the number of parts (communities), e.g. the Louvain method, or they only work for undirected graphs, e.g. k-MST. I also considered computing a minimum cut, but my network does not have source and sink.

Which other methods are there?