I still can’t understand where the entire contents of the page is stored ... Sometimes you need to delete some class from an element or add it on the contrary, but how to find the necessary object in PHP files? I just can not understand the structure, how these files are output ... Help, please explain someone. Enfold Theme Template
3 answers
Sometimes you need to remove some class from an element or add it on the contrary, but how to find the necessary object in PHP files?
If CSS classes are meant, they are usually found in files with the * .css extension or * .less, * .saas if the preprocessor is used.
How they can be searched and edited:
1) In the browser, for example, Google Chrome, open "developer tools" - Ctrl + Shift + I or F12. Find the CSS code for the element you want to edit.
2) If this is a good hosting, then surely there will be some kind of file manager. Find the files containing this CSS code through it. If there is no file manager on the hosting, then look for the code through an FTP client (for example, FileZilla).
3) If it is a local server, then you can search through Notepad ++, or through any file manager.
where is the entire content of the page.
In the database. But to climb into it is unnecessary.
Sometimes you need to remove some class from an element or add it on the contrary, but how to find the necessary object in PHP files?
This is no longer content, but layout and markup. Theme files are responsible for this.
I just can not understand the structure of how these files are displayed ...
Copy a project locally to yourself, open it with Notepad ++, phpStorm, etc. and do a search in phpStorm files for this Find In Path .
In general, start by studying the hierarchy of templates, so it will be easier to understand where to look: post - single.php page - page.php category - archive.php
But the file structure can also be split into template-parts .
I also advise you to add a real example to your question if you mentioned the topic Enfold. Add information about what you want to find.
Added description:
Smart Slider 3
You most likely button styles will look like this:
div#n2-ss-3 .n2-font-75774b5a595fadfc3656349b99c5effa-link a { font-family: 'Montserrat','Arial'; color: #ffffff; font-size: 100%; text-shadow: none; line-height: 1.5; font-weight: bold; font-style: normal; text-decoration: none; text-align: center; letter-spacing: normal; word-spacing: normal; text-transform: none; } assign higher priority to selectors or properties and interrupt styles.
Customize Docs Button
- I added a slider from Smart Slider 3. I placed a button on the slider, I need to change it a bit for myself. I look at the source code - a bunch of classes are written to this button (<div class = "n2-ss-button-container n2-ow n2-font-72c1fdc336d6460a261f2baf0f8243c6-link n2-ss-nowrap"> <a class = "n2-style- 13feef46641adcb80c5df04f710c3b35-heading n2-ow ""> <div> <div> Online application </ div> </ div> </a> </ div>). Here's where to look for it? - ks166
- What you specify refers to the slider code, not the topic code. Therefore, it is necessary to make button styles in the slider settings, if there is no flexibility in settings, then interrupt with styles - eugene_v
- Added a description in the response - eugene_v
- With styles I’m doing this, but how can I change the link and register a new path for it? Specifically: in the settings of the slider in the link you can not register a shortcode (pop-up form), you can only # ... So I need to change the value for it in the code, turning my form into a div. This is where I can’t find where my slider stores the value of "a" And in general, is it output via PHP? or through JS? Sorry for the dullness :) - ks166
- 2Why in each comment we learn something new. Edit your question so that it is clear what exactly you want to do. Without too much text, just a particular one - eugene_v