Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [css]

Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics (the look and formatting) of HTML output, usually via Themes. When you have to use this tag, then there's a high chance that your question is off topic on this SE network site.

0
votes
2answers
475 views

How to remove automatically added <br class=“clear” >

I'm creating one wordpress template. Required information added in wordpress header.php, footer.php and everything was fine. Then i added one page. But while viewing the page there was a small problem ...
0
votes
1answer
13 views

How to display a value from a radio button in the options menu in wordpress

I'm a little stumped on this one. I'm not very experienced when it comes to PHP, but I have figured out how to display a value inputted from a text box. I'm now trying to do the same with a radio ...
1
vote
1answer
72 views

Style new block-editor alignfull class without scrollbars or overflow

With WP 5.0 you can now enable full width blocks in the editor by adding this to your theme: add_theme_support( 'align-wide' ); However, if you are using a custom theme you have to add your own CSS ...
0
votes
0answers
20 views

Div Within a Div - Positioned at the Top [on hold]

I am wanting to place a div within another div. The point is to create a border at the top of the div. The border will include a small icon image at the left, and a headline. I am thinking that there ...
0
votes
1answer
498 views

How to include backend buttons css on frontend?

I want to include backend buttons css on frontend in a plugin? This is how its inluded in backend: http://localhost/wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons,wp-...
0
votes
1answer
21 views

Change css padding on home page [on hold]

I was trying to change the margins on post pages, so I added this code, which worked @media screen and (min-width: 767px) { p { font-size: 21px; padding-right: 20%; padding-bottom: 10px; padding-left:...
0
votes
1answer
21 views

CSS transition from 0px width to 100% width

I have a website where I have set the content to left 100% on normal screen and on click on the button it will show on the screen with left 0%. I want the transition to be smooth, like the width will ...
0
votes
3answers
24 views

Title has word broken when viewed in mobile [on hold]

I am designing a website using the Renden Free theme, and my problem is that some long titles, when viewed in mobile, have words broken in half. For example: As you can see, the word "Corporal" gets ...
0
votes
3answers
670 views

How to add style in functions.php depending on conditions?

I'm a newbie for coding, I would like to learn how to add css style conditionally in functions.php My header controlled by .header-outer class. What would it be the best way to add css depending on ...
-2
votes
2answers
2k views

How to remove post view count

My theme shows the post view count. There are no options in the settings to disable post view counter meta. Can anyone help me to remove that post views count? I want to hide it from visitors. ...
1
vote
1answer
20 views

Shortcode content output but not in correct place

I have created a shortcode that gets information from an ACF repeater field... function display_websites_shortcode() { ob_start(); // check if the repeater field has rows of data if( ...
0
votes
1answer
474 views

Dividing the loop to style post differently

I'm using a plugin that displays post and shows them in a certain area on my site, such as the sidebar or anywhere i put the <?php;?> code, but only if the author that is writing the post clicks ...
1
vote
2answers
489 views

Possible to include ACF text field within inline style tag?

I am using an :after pseudo selector to place some text after an element on my page. I would like for this text to be content managed using Advanced Custom Fields, but I am not able to get it to work. ...
0
votes
1answer
420 views

My Custom Post Type Still Using index.php

I Registered a New CPT , and it did works but , after working on something different , when i refreshed the page , i realized that my CPT turn to work with index.php . i think all is fine with my code ...
0
votes
0answers
9 views

Wordpress page elements aligned to left [closed]

The website I'm working on for some reason is facing some issue. The entire website homepage is aligned to the left all of a sudden. I honestly have no idea when it happened. I have checked through ...
-2
votes
0answers
15 views

Problem when hover on child menu [closed]

First of all, Thanks for the support. I have wordpress site named tattoodi that you can check here https://goo.gl/mVEMdn But I’m facing one issue of css or jquery I think. When I’m trying to hover on ...
0
votes
1answer
33 views

Navigation menu disappears when I hover the mouse [on hold]

When I hover the mouse on submenu of our products section it automatically disappears, so I cannot click on the sub products. can you please help us out? website
2
votes
7answers
47k views

Disable SSL / HTTPS for wordpress

I've installed WordPress and setup the database. I go to the address and the setup page is there, but no CSS. I think: something's wrong, but if I just do the setup maybe everything will just go back ...
0
votes
0answers
22 views

Same height on items in columns block (align-item stretch or other method)

I am building a small plugin to make it possible to add bootstrap cards as custom blocks. This works great in general. Now i'm working on their css and have an issue with alignment. I would like the ...
1
vote
1answer
17 views

Checkout form looks terrible [on hold]

Im currently building my first ever wordpress theme however the checkout form just looks messy. I have tried changing some bits around with css but It all just looks our of line. I have tried ...
0
votes
1answer
14 views

how to modify html on homepage (no home-page.php in my theme)

I would like to modify the html in on my homepage from <div id="slide-6996" class="slide slide-6996 cycle-slide-active slide-left light" style="background-image:url(http://18.205.33.160/wp-...
1
vote
1answer
22 views

Edit css for search results page

I have a search results page with a template call content-search.php. Basically what this file does is to display the results after a person searches something on the search bar, and i would like to ...
0
votes
0answers
5 views

Is it possible to clone an element and link the styles of both together via a visual editor?

I'm building a site with Beaver Builder. I've got a grid with 3 rows and 5 columns. I've got three pages with a grid like this. (So that's 3 rows x 5 columns x 3 pages = 45 unique cells total). ...
2
votes
2answers
63 views

Hide add new page button

I want to hide the add new page button from users that are not administrators. I managed to hide the submenu item from the right column like this: $page = remove_submenu_page( 'edit.php?post_type=...
0
votes
2answers
16 views

Trouble finding the correct element [on hold]

I'm really sorry to ask this question here but I am having a tough time with this. On my blog I have a heading that is assigned class col-sm-6 (which I know is bootstrap class) and this class is set ...
0
votes
0answers
21 views

Hestia Header Image, Troubles When Sized To Contain [on hold]

I have seen that this theme is responsive, and is following material design principles, but there are issue with the header image. I want the full header image to appear on the frontend, if i apply “...
0
votes
1answer
553 views

Menu Custom Data Attributes

I'm trying to add a custom data attribute to the <a> element. What I'm trying to do is integrate the navigation effect in this CodePen I can do all the CSS but I need to add the HTML part such ...
0
votes
1answer
24 views

Is it possible to insert text into an html tag using functions.php?

Here's what I mean: I am using a plugin called 'pods' which allows for the creation of Custom (CPT) and for relationships to be formed between those CPT's. However - there's a little flaw that I can ...
0
votes
0answers
22 views

Show Featured image and 5-6 secondary images of posts on wp blog homepage [on hold]

I am creating a travel video blog and I want to show the featured image and some shots from the video on home page. I saw this on another website but I am trying to replicate that on wordpress. Here ...
0
votes
1answer
503 views

Creating custom post-listing templates in twentyseventeen child theme

I'm using a child theme based on 'Twenty Seventeen' and have created a custom post type ('review'). I want to make two Pages, one which lists 'reviews' and the other which lists a mixture of 'posts' ...
1
vote
1answer
503 views

What is better way to use Bootstrap inside admin panel?

I need to use Bootstrap CSS for better UI in wp-admin but if I enqueue the bootstrap.css, it's affecting the admin default UI by changing background colors, etc. How can I use bootstrap.css inside wp-...
0
votes
1answer
19 views

Should I store critical css in the database or in my theme's filesystem?

I have a method for detecting a post's critical css when the page is requested and in-lining it to optimize page speed. I would like to cache this css to avoid having to compile it for every page ...
0
votes
1answer
36 views

Wp includes access control

Everyone peoples can easily acess to my wp-includes how can i hide or not visible files to users can anybody help me regarding it this is my wordpress website link see everybody can see this https://...
-1
votes
1answer
24 views

remove author and date from all posts [on hold]

I've tried including some code in style.css of my theme, but it didn't work. Ex: body.blog .posted-on, body.blog .post-author, body.blog .post-comments, body.blog .entry-taxonomy { display: none; }...
0
votes
1answer
544 views

add css to only body text

In my single wordpress posts I want to apply a padding of 100px to the left and right. The problem is that when I apply it to .single .post-content the images also get a padding. However, I want all ...
0
votes
1answer
20 views

Add a unique body class for every admin page (including trash)

How can I add a unique class for WP admin pages (including trash) ex. URL wp-admin/edit.php?post_status=trash&post_type=locations
0
votes
1answer
542 views

Wordpress Caption Formatting

I'm trying to create a custom wordpress theme. Everything has gone fine, except image formatting in post content. Image captions are not displaying properly in newly created theme. I have already ...
1
vote
2answers
31 views

Change post featured image on hover

I've almost finished my first custom theme for a website. I've created some custom post type to manage a portfolio and a staff member section. No problem with the code, but the client asked if is it ...
-1
votes
1answer
8k views

How to Convert Shortcode into a link?

Here is my shortcode: [contact-form-7 id="1735" title="Contact form 1"] To execute it, I need it in links (Ex.http://html.com). How to convert this short code to link? Is it possible?
0
votes
1answer
12 views

Display posts side by side with custom query

I'm trying to organize my posts side by side but they keep being displayed vertically. This is my code: <div class="row agenda-box justify-content-start padding minheight-40"> <div ...
1
vote
2answers
527 views

Grey out nav buttons unless is_user_logged_in()

I'd like to show my users some features I offer if they register in a special nav bar. I've created this for a logged in version and a logged out version: if ( is_user_logged_in() ) { $menu = ...
0
votes
0answers
12 views

Adding content between Header and Footer

I'm trying to add a google maps "Places Search" functionality between the header and footer of my WordPress website. I'm using a theme that provides a custom header and footer. The google maps ...
0
votes
1answer
25 views

When using https, wordpress doesn't use https for CSS and JS, and admin doesn't work. How do I fix this?

So I recently, built and LAMP server and installed wordpress on it. I connected it to the web via a reverse ssh tunnel using serveo.net. I decided to add ssl and the rest of the website seem to work ...
0
votes
4answers
38 views

Add second background-image on hover

I'm using my featured image as a background image on a div and I would like to add a second background-image to that same div on hover (I need them both because I want to blend them). Any suggestions? ...
0
votes
1answer
13 views

Style not being applied to newly installed themes

really hoping someone can help, I am at the end of my tether.. I have tried installing new themes and none of them have the style applied when i activate them, or even preview them for that matter. I ...
0
votes
1answer
76 views

Web Developer Console: “Slow network is detected.” with fonts

I am new to coding and just started working on a website. The issue that I am having is the extreme lag time. The site that I am using is in wordpress with a custom theme. Every plugin has been ...
0
votes
0answers
23 views

(Sticky Row) How do i make a row sticky in wpbakery page builder?

I want a row to get stick to the top menu so that it can act as meu for my user. For reference please see the image.
0
votes
0answers
15 views

Move plugin css to another area in html markup

I'm using <noscript id="deferred-styles"> <link rel="stylesheet" href="mysite.com/css/main.css"> </noscript> to defer css styles. I have some plugins adding css which I want ...
0
votes
0answers
30 views

how to remove a tag in the_category function

https://core.trac.wordpress.org/browser/tags/5.0.3/src/wp-includes/category-template.php#L0 line:195 //line 195 default: $thelist .= '<a href="' . esc_url( ...
0
votes
1answer
18 views

Wordpress custom blockquote with black background & white text?

I have no idea if I'm in the right place, but anyone help me customise my site? My current wordpress theme has blockquotes that look basically identical to regular (bold) text. Could I use CSS ...