About service section.

ThemePalace: WordPress Themes & Plugins Forums Bizlight About service section.

Post to topic

This topic contains 23 replies, has 2 voices, and was last updated by  wensolutions 3 hours, 53 minutes ago.

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #35949

    wensolutions
    Support Team

    Hello @drknuth,

    Actually you need to replace the existing code for including the parent theme style with the code we have provided above .

    Your child themes functions.php file should only include the below given code to inherit the parent style and function .

    <?php
     
    add_action( 'wp_enqueue_scripts', 'bizlight_child_style' );
      function bizlight_child_style() {
    	wp_enqueue_style( 'child-style',get_stylesheet_directory_uri() . '/style.css',array('parent-style'));
    }

    After this you can add the additional function you require to modify the theme.

    Hope this helps .

    Best Regards!!

    #35970

    DrKnuth
    Participant

    Hi!

    Thanks for your reply. Replacing in functions.php the preexisting code with the one suggest will give the same effect that I mentioned in a previous message when I said to have commented the preexisting code so that only the suggested code is interpreted: the site is shown as if there were some problem with the styles. Below a screenshot.

    Thanks for your time.

    Kind regards,
    Daniel

    #36159

    wensolutions
    Support Team

    Hello @drknuth,

    As it is not working please create the child theme using the code given below :

    <?php
    
    add_action( 'wp_enqueue_scripts', 'bizlight_child_style' );
      
      function bizlight_child_style() {
     
     wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
     wp_enqueue_style( 'child-style',get_stylesheet_directory_uri() . '/style.css',array('parent-style'));
    }

    Now the under line seen below the text can be removed by using the CSS code given below.

    section.wrap-service a:hover {
    
    text-decoration: none!important;
    
    }

    Hope this works out .

    Best Regards!!

    #36166

    DrKnuth
    Participant

    Hi!

    Thanks for your reply.

    I was comparing the suggested code for functions.php with the original code for functions.php that uses the WENS child themes plugin and it is exactly the same, so I just uncommented the original code, remove the code suggested in a previous message and then added the CSS code.

    Now the service items does not display underlined text by placing the mouse over them, however the text in the menu options and the name of the blog is underlined by placing the mouse over them.

    On the other hand, the button for go to the top of the page is deformed when using a child theme.

    Thanks for your time.

    Kind regards,
    Daniel

    #36251

    wensolutions
    Support Team

    Hello @drknuth,

    Now to remove the underline from the menu item and the title of the blog please use below CSS.

    .main-navigation li a:hover {
    	text-decoration: none !important;
    }
    
    .site-title a:hover{
    	text-decoration: none !important;
    }
    
    a.evision-back-to-top {
        height: 45px;
    }

    Hope this helps.

    Best Regards!!

    #36295

    DrKnuth
    Participant

    Hi!

    Thanks for responding and for the code! It worked and I think the button now has a uniform size, but the arrow is off-center. Can you help me put it back in the center again?

    A curious question: why do you think that when setting the child theme, that causes all these settings of the original theme to be lost and it is necessary to accommodate all this again by hand?

    Thanks again for your time.

    Kind regards,
    Daniel

    #36357

    wensolutions
    Support Team

    Hello @drknuth,

    To adjust the position of the arrow in the center please use below CSS .

    .evision-back-to-top {
      padding: 2px 13px 9px !important;
        }

    Also the issue regarding the style, normally these kind of issue does no occur while creating the child theme . So for this issue we are trying to find out the cause and inspecting on the issue further .

    Hope this helps.

    Best Regards!!

    #36460

    DrKnuth
    Participant

    Hi! Thanks for your reply.

    > To adjust the position of the arrow in the center please use below CSS.
    >
    > .evision-back-to-top {
    > padding: 2px 13px 9px !important;
    > }

    I compared the result with the original theme and I think it should be a little more up (about 1 mm). I tried changing some of the numeric values of the supplied code, but I could not achieve this result.

    > Also the issue regarding the style, normally these kind of issue does no
    > occur while creating the child theme. So for this issue we are trying to
    > find out the cause and inspecting on the issue further .

    If you find the cause of this, it would be nice to have a patch available for the affected files, especially if the next version of the theme will be published within several months. I think it could be useful for everyone who has the need to use a child theme.

    Thank you for your time and patience 🙂

    Kind regards,
    Daniel

    #36667

    wensolutions
    Support Team

    Hello @drknuth,

    If you want the arrow to move little up then you need to adjust padding of the CSS code we have provided above .

    .evision-back-to-top {
      padding: 3px 13px 9px !important;
     }

    Also you can adjust the location of the arrow by simply changing the first value.

    Hope this works out .

    Best Regards!!

Viewing 9 posts - 16 through 24 (of 24 total)

You must be logged in to reply to this topic.