• Resolved sergiom87

    (@sergiom87)


    Hi,

    I would like to change the text on the side slider ftom H to paragraph. Is that possible?

    • This topic was modified 2 years, 6 months ago by sergiom87.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @sergiom87,

    Thanks for contacting us,

    I hope you are doing well, The slider heading is being directly displayed in a div, you can modify the font size of the slider heading through this code, please paste it in your child theme’s function.php.

    add_action( 'wpcs_after_slider', function ($slider_id) {
    	?>
    	<script>
    		if (jQuery("div").hasClass("wpcs_tab")) 
    		{
    			jQuery(".wpcs_tab").css("font-size", "16px");
    		}
    </script>
    <?php
    });

    Please check it and let me know.

    Thanks & Regards

    WP Experts Support Team

    Thread Starter sergiom87

    (@sergiom87)

    Hi

    I would like to change it’s heading not the font.

    It’s currently as H2, but I have a custom code that changes h2 to h1 so now I have it as a h1 when it should be a Paragraph

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @sergiom87,

    Please could you send us a screenshot of the text in which you want to change its heading?

    Thank you

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @sergiom87 Do not use short links in these forums, that has been abused in the past and is expanded when found. Especially do not use that link shortner ever here on this site.

    I have expanded yours into the link field. That field cannot be seen by search engines and is only visible to users who are logged into the forums.

    Thread Starter sergiom87

    (@sergiom87)

    Hi,
    Sorry, I had no idea.

    Here’s the link: https://www.dra-anasousa.pt/
    Text is on the side slider, “Fale connosco”

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @sergiom87,

    As much we understand you want to wrap the contact slider icon text into a paragraph. We have append slider icon text into the p tag you can check by inspecting it in any browser.

    Also, we have added font size to 16px like paragraph because by default is 18px if you don’t want to remove the line.

    Please add this code to the functions.php child theme.

    add_action( 'wpcs_after_slider', function ($slider_id) {
    	
    	$title = get_the_title($slider_id);	
    	?>	
    	<script>
    		if (jQuery("div").hasClass("wpcs_tab")) 
    		{	
    			jQuery(".wpcs_tab").css("font-size", "16px"); // if you don't want to resize font then can remove this line
    			jQuery(".wpcs_tab").text('');
    			// adding p tag to contact slider icon text
    			jQuery(".wpcs_tab").append('<p class="wpcs-tab-title"> <?php echo $title ?> </p>');
    
    		}
    </script>
    <?php
    });

    Please check it and let me know.

    Thank you

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @sergiom87,

    We are resolving this thread due to a lack of activity if you have any questions please open a new thread.

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change header’ is closed to new replies.