Title: Unknown CSS, mobile/tablet optimization?
Last modified: November 23, 2023

---

# Unknown CSS, mobile/tablet optimization?

 *  [Tomi](https://wordpress.org/support/users/tomitech/)
 * (@tomitech)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/unknown-css-mobile-tablet-optimization/)
 * I recently got back into working on my site code after a 3 year hiatus. I am 
   trying to understand the origins of the CSS code [here](https://gist.github.com/TomiFodor/8ac0a789f82e43fece77a1a4c9cb1bb1)–
   whether it’s from theme updates (Flatsome w/ child), plugins, GUI customizations,
   or my own manual adding. I’ve used GPT for explaining it, and it appears to be
   for mobile/tablet optimization and responsivity.
 * I don’t remember adding any of it since I never really worried about mobile or
   tablet responsivity – it was something I was going to do in the future, but as
   you can see, there are multiple blocks. Perhaps I read a thread somewhere about
   mobile responsivity, and I was persuaded into adding it to my custom CSS. That
   is my best guess, but I am hoping someone with much better expertise can give
   me their best guess.
 * Just hoping to clean things up so I don’t get too left behind on the code for
   my own site!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funknown-css-mobile-tablet-optimization%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/unknown-css-mobile-tablet-optimization/#post-17225309)
 * Likely its from your theme.
 * Since you use a commercial theme and need support, please go to their official
   support channel. In order to be good stewards of the WordPress community, and
   encourage innovation and progress, we feel it’s important to direct people to
   those official locations.
 * [https://themeforest.net/](https://themeforest.net/)
 * Forum volunteers are also not given access to commercial products, so they would
   not know why your commercial theme or plugin is not working properly. This is
   one other reason why volunteers forward you to the commercial product’s vendors.
   The vendors are responsible for supporting their commercial product.
 * **As the developer is aware, commercial products are [not supported in these forums](https://make.wordpress.org/support/trouble/section-1-getting-started/what-is-not-supported).**
 *  [Alexander](https://wordpress.org/support/users/alextonio22/)
 * (@alextonio22)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/unknown-css-mobile-tablet-optimization/#post-17227850)
 * Hi Tomi,
 * I understand the concern regarding the origin of CSS code on your WordPress site,
   especially after a hiatus. To help you identify and clean up the code, here are
   several solutions.
    1. **Check Theme Customizer**
    2.  - Navigate to your WordPress dashboard.
        - Go to “Appearance” > “Customize.”
        - Review the Theme Customizer for any settings related to mobile and tablet
          responsiveness. Adjust or remove unnecessary customizations.
    3. **Child Theme**
    4.  - Examine your child theme’s `style.css` file for any customizations. Remove
          or modify code blocks that pertain to mobile and tablet responsiveness as
          needed.
    5. **Theme Updates**
    6.  - Check the theme’s changelog or release notes for updates related to mobile
          responsiveness. If there are new features or optimizations, consider adjusting
          your code accordingly.
    7. **Plugins and Page Builders**
    8.  - Review the settings of plugins, especially those related to performance optimization
          or responsive design. Check any visual editors or page builders you’ve used
          for added CSS related to mobile responsiveness.
 * If these solutions do not resolve the issue or if you need further assistance,
   please provide more details about the concern. This could include specific CSS
   code snippets, the location where you’ve found the code, or any error messages
   you’re encountering. With additional information, I’ll be better equipped to 
   offer more targeted guidance on cleaning up and optimizing your site’s CSS.
 * Kind regards,
 * Alexander
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/unknown-css-mobile-tablet-optimization/#post-17228060)
 * You can use your browser’s element inspector tool to learn which CSS is being
   applied and where it comes from. You’ll first need to identify an element using
   the class or ID attributes selected by the CSS in question. They can be searched
   for from within the inspector tool. Click on one of the elements and its applicable
   CSS will be shown. Find one of the rules in question and its source will be indicated.
   The source file’s URL will indicate which theme or plugin it belongs to.
 * If the source is shown as `(index)` then it is from inline CSS. Find the applicable
   CSS in the page’s source HTML view. If the related style tag’s ID is “wp-custom-
   css” then the CSS comes from the customizer’s additional CSS section. Any other
   style tag attributes should be a clue to its origin.
 * If you have terminal access to the site, you could `grep` (full text search) 
   for a particular rule and all files containing the search string will be returned.
   If no file contains the CSS you’re looking for, then it’s saved in your DB somewhere.
   You can search the DB with the phpMyAdmin app. How and where it was saved should
   be an indication of which module is responsible for it being there.

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

The topic ‘Unknown CSS, mobile/tablet optimization?’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 4 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/unknown-css-mobile-tablet-optimization/#post-17228060)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
