Add Shortcode to ::before class
You can’t do what you’re trying to do. If you want to output a shortcode you need to do it in the content or template. You can’t place one with CSS.
You can’t do what you’re trying to do. If you want to output a shortcode you need to do it in the content or template. You can’t place one with CSS.
I’m sorry I don’t have enough recommendation to comment your question and ask for more information. To answer your question as I understand it : This is CSS related. If you only used the HTML part of your “3rd party site”, it is normal you don’t have any CSS style applied (unless it is inline … Read more
the code you added affect the general elements of the page the H1 ,H2 ,H3 for example from the first part of the code h1 { padding: 0.5em; color: #010101; background: #eaf3ff; /*this give the light blue back ground*/ border-bottom: solid 3px #516ab6; /*and this gives the border under it*/ } remove the two lines … Read more
How Can I Disable WordPress Theme Self-Update?
You can test if the $thumb has any contents and then apply a class to the featured image block that you can use to hide the container. <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ ); ?> <div id=”post” class=”featured-image <?php echo empty($thumb) ? ‘no-featured-image-class’ : ”; ?>” style=”background-image: url(‘<?php echo $thumb[‘0′]; ?>’)”>
Well I got it working with a different approach but a good answer that provides insight why the approach in my question didn’t work will be accepted as the answer. I put this in functions.php for the child theme: add_action( ‘genesis_before_header’, ‘bob_gray_image’, 10 ); function bob_gray_image() { if ( is_front_page() ) { echo(‘<div class=”bobgrayimage”><img src=”https://wordpress.stackexchange.com/images/robert-c-gray-banner-maskbob-sharpen.jpg”></div>’); … Read more
I was implemented it for images, which shows lists of images inside a container like pdf viewer..I just overide the css property of bloc gallery class, and adding an additional class… .image-list{ position: relative !important; padding-bottom: 140% !important; overflow: hidden !important; border: 1px solid #ddd !important; } .blocks-gallery-grid{ position: absolute; left: 0; top: 0; width: … Read more
Remove top bar header
You can put pinkBackground in additional CSS Class, then you will have to add the following code into your Additional CSS, Dashboard > Appearance > Customize > Additional CSS. .pinkBackground { background-color: pink; } Keep in mind you should use the hex code in order to be able to set a specific color, so in … Read more
take reference of two classes and apply css e.g you have menu in li as: <li class=”menu-item-24011″> <span class=”menu-text”>profile</span> </li> then add this css: .menu-item-24011 .menu-text { padding-left: 50%;//change as per your req }