Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter fernanf

    (@fernanf)

    I know there are many options to embed a video in WP. My need is, particularly, load videos to WordPress Media Library.

    Thread Starter fernanf

    (@fernanf)

    I thought the theme is linked with XML file but later I cheked that it is not like this.
    The issue is that in the front-page of the web is configured with a default image that is taken from the image gallery. I need to change this image for a video. I am working with a child theme and I want to change the code and in the DevepTool of Chrome I saw that the code with which it is embedded is the following image:

    <img src="https://localhost/Cover/wp-content/uploads/2018/01/Fondo_web_freepik.com_.jpg" alt="Fondo_web" draggable="false">

    The issue is that I am not able to locate this code in the php files to change it and include the code to embed the video. I tried to find it with TextCrawler programm but it was not possible.

    Excuse me, I am beginning in WordPress developer world.

    Thanks in advance.

    Thread Starter fernanf

    (@fernanf)

    I did not mean how the function is_active_siderbar works. I meant how the code is defined to show that a widget is activated.

    Thanks in advance.

    Thread Starter fernanf

    (@fernanf)

    Thanks

    Is there a solution to avoid moving the search bar every time I change to the child theme?

    Thread Starter fernanf

    (@fernanf)

    But do I have to copy the php files in child theme and keep the originals in parent theme or delete them from parent theme?
    Thanks

    Thread Starter fernanf

    (@fernanf)

    I followed those steps and despite this I have the error

    Forum: Fixing WordPress
    In reply to: Child theme style
    Thread Starter fernanf

    (@fernanf)

    The Child Theme has associated this file but I checked that this one does not appear in parent theme. For this reason, I think it is not neccesary. I suppose common.min.css is in absence of other file of parent theme and the system taken this one to replace it. After that, I deleted this file and, apparently, the website style is the same. I could deleted it, permanently but I want to be sure that Child Theme is taken all styles from parent theme.
    Thanks.

    Forum: Fixing WordPress
    In reply to: Child theme errors
    Thread Starter fernanf

    (@fernanf)

    The question is that I have not received an adequate response from the author and I wanted to know what the problem might be, specifically, to comment on it and be more accurate in my request.
    Thank you and I’m sorry.

    Forum: Fixing WordPress
    In reply to: Child theme errors
    Thread Starter fernanf

    (@fernanf)

    I bought it from templatic.com site.

    • This reply was modified 6 years, 8 months ago by fernanf.
    Forum: Fixing WordPress
    In reply to: Child theme errors
    Thread Starter fernanf

    (@fernanf)

    Sorry, also the other two following errors indicated above are shown:

    Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\Cover\wp-content\themes\MusicTheme\widgets\class-tmpl-image-gallery.php on line 106

    Notice: Trying to get property ‘post_author’ of non-object in C:\xampp\htdocs\Cover\wp-content\themes\MusicTheme\widgets\class-tmpl-display-post.php on line 211

    Forum: Fixing WordPress
    In reply to: Child theme errors
    Thread Starter fernanf

    (@fernanf)

    I’m not sure if I did it well. I renamed the folder MusicTheme-child as MusicTheme-child-old and with the MusicTheme-child activated, the website shows the same following error and the site without styles:

    Deprecated: Function create_function() is deprecated in C:\xampp\htdocs\Cover\wp-content\themes\MusicTheme\functions\auto_install\auto_install.php on line 422

    Also, the version of PHP runs on Xampp is 7.2.0

    Could be it a problem with the current PHP version?

    Thanks

    Thread Starter fernanf

    (@fernanf)

    Thanks Steve for your answer. I compared the code of the parent theme to the child theme because there is a section that is not inherited from parent to child theme, and I am not sure but I think it could be related to the installed widget.
    The section code that is not shown into the child theme is the following:

    (you can see the parent theme in https://www.seedmusiccenter.com)

    <div class="widget-wrap">
      <div class="container">
       ::before
       <h2 class="widget-title">New Release Album</h2>
       ::after
      </div>
      <div id="tmpl-image-grid" class="grid cbp-so-section cbp-so-init cbp-so-animate" style="position: relative; height: 746.266px;">
        :: before
        <div class="grid-sizer" style="position: absolute; left: 0px; top: 0px;></div>
        <div class="cbp-so-side cbp-so-side-left album featured col-1" style="position: absolute; left:448px; top: 0px;">...</div>
        ::after
      </div>
     </div>
    </div>

    For example, I looked up the string text “New Release Album” above, into the folder theme and I could find it in file “import-widgets.wie” (see the following code) for this reason, I think it could be related to the WordPress Import Widget and could be the reason why this section does not appear into the child theme.

    Other example: I looked up the string “<div class=”widget-wrap”>” above and I could find it into the file “class-tmpl-image-gallery.php” in the path “\MusicTheme\widgets\class-tmpl-image-gallery.php

    Question:

    What can I do to inherit this code from parent to child theme?

    Thanks

    Forum: Fixing WordPress
    In reply to: Child theme
    Thread Starter fernanf

    (@fernanf)

    Thanks for your answer.
    Let me know if I understood:

    Does it mean that I have to dequeue all stylesheets in parent theme according to the following code?. For example:

    wp_enqueue_style( ‘component-style’, get_stylesheet_directory_uri() . ‘/css/component.css’ );

    and add the following code:

    wp_dequeue_style( ‘component-style’, get_stylesheet_directory_uri() . ‘/css/component.css’ );

    and include the code:

    wp_enqueue_style( ‘component-style’, get_template_directory_uri() . ‘/css/component.css’ );

    Thanks

Viewing 13 replies - 1 through 13 (of 13 total)