style.css file in child theme doesn’t work

I have created a child theme for my WordPress theme. I have created a style.css and functions.php file, but it doesn’t work on my website and I guess this is my functions.php file problem…

  • Enqueue styles. */ function kava_child_styles_depends( $ deps ) {

    $ parent_handle = ‘kava-parent-theme-style’;

    wp_register_style( $ parent_handle, get_template_directory_uri() . ‘/style.css’, array(), kava_theme()->version() );

    $ deps[] = $ parent_handle;

    return $ deps; }

style.css file in child theme doesn’t work

I have created a child theme for my WordPress theme. I have created a style.css and functions.php file, but it doesn’t work on my website and I guess this is my functions.php file problem…

  • Enqueue styles. */ function kava_child_styles_depends( $ deps ) {

    $ parent_handle = ‘kava-parent-theme-style’;

    wp_register_style( $ parent_handle, get_template_directory_uri() . ‘/style.css’, array(), kava_theme()->version() );

    $ deps[] = $ parent_handle;

    return $ deps; }

Parent class wrapping child method

I have this Worker classes doing some job

class WorkerOne implements IWorker {     @Override     public doWork(Resource resource){      // do some work     } } 

I want all doWork() methods to be wrapped by the same operation.

Currently it is done by sub-classing Worker classes from abstract class like this:

abstract class WorkWrapper implements IWorker {     @Override     public doBetterWork(){        Resource resource = // ...        doWork(resource)        reource.close();     } }   class WorkerOne extends WorkWrapper {      protected doWork(Resource resource){      // do some work     } } 

and being invoked by

WorkerOne worker = new WorkerOne(); worker.doBetterWork(); 

I don’t like this inheritance solution since its not actually ‘is-a’ relationship, and would appreciate your help for better solution.

Magento2.2.5 ass custom head.phtml to child theme

I am developing a custom “child” theme based off Luma and wondering how I might add a custom head.phtml file in my child theme so that I can have my magento load that to get the additional css and js i need loaded when my child theme loads.

I have edited the file located at app/design/frontend/Kiss/luma_kiss/Magento_Theme/layout/default.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body>     <referenceContainer name="head.additional">         <block class="Kiss/Headblock" name="porto_custom_head" template="html/head.phtml" before="-"/>     </referenceContainer>     <referenceBlock name="logo">        <arguments>           <argument name="logo_file" xsi:type="string">images/kiss_logo.png</argument>           <argument name="logo_img_width" xsi:type="number">200</argument>           <argument name="logo_img_height" xsi:type="number">200</argument>        </arguments>     </referenceBlock>   </body> 

Magento2.2.5 Luma child theme not using default_head_blocks.xml in child theme folder

I have a Magento 2.2.5 based multi-store view website. What we want to do is take the Luma theme and create a custom child theme from it. Each store view (we have 3) would use its own child theme of the Luma theme.

The main difference is each child theme needs to use its own CSS file and some js files. The issue is even though I did an upgrade, compiled, deploy and assigned my theme to the store views my default_head_blocks.xml file does not seem to be loading from the child theme folder.

My folder structure is below. app/design/frontend/Kiss/ Then in the “Kiss” folder, I have 4 child theme folders luma storea_luma storeb_luma storec_luma

there are some files in the “luma” folder that I will have all 3 store views reference while other files will be referenced from the individual child theme folders.

so, for example, the footer related files for all three store views would ideally be loaded from the luma folder because it should be the same for all 3 store views.

My default_head_blocks.xml located in app/design/frontend/Kiss/sotrec_luma/web/layout/default_head_blocks.xml

now when I go to storec_luma store view and view console I don’t see any of the files that are called in via the XML file??

I have read conflicting posts about the Luma theme can not be inherited. just wondering what the above issue might be that’s preventing my XML from loading in the store view.

Under which conditions can dllhost.exe spawn child process? | MITRE ATT&CK T1191

I was looking for conditions/circumstances under which Dllhost.exe can spawn a child process. I examined a huge quantity of event logs from various Windows system and didn’t come across any event in which Dllhost.exe spawns a child process.

The only noticeable event(eventid:4688) was dllhost.exe –> cmd.exe which was a result of a simulated ‘cmstp UAC Bypass’ attack.

Scenario:

  • Threat hunting for MITRE ATT&CK T1191.
  • Initial IOC being dllhost.exe spawning child process(attacker payload/elevated shell).

I am planning not to look for specific dllhost.exe–>cmd.exe events as they limit the scope of rule.

The insight I am looking for is: If we create a detection rule for T1191 which triggers when dllhost.exe spawns a child process what is going to be the success rate and how many false positives could arise from this particular rule.

PS: Looking for events where cmstp.exe is spawned and examining the commandline for certain execution flags might seem like a better approach but that will not tell us about the final elevated program that has been launched.

Child passport and visa is getting expired prior to parent’s

I am a Pakistani citizen holding a Pakistani passport. My child has a valid Canadian visit visa on his passport and it is going to expire on Apr 2020. (Both passport and Visa) However my passport has a longer validity (both visa and passport).

My question is: How can my child stay longer than expiry? Do I need to renew his passport and re apply for his there in Canada or I need to fly back to Pakistan, renew his passport and apply new visitor visa?