Posts by BrunoAngeoletto • 179 points
12 posts
-
1
votes1
answer32
viewsA: Wordpress shortcode
You can use a action hook directly in your template to add the version. In my example copyrigth is in the footer-copyrigth.php file So I used the hook as follows = add_action(…
-
1
votes1
answer12
viewsA: replace the user-embedded external image with the new version of the local host
The plugin in question is discontinued, so it no longer works. However I use another plugin to do basically the same thing. https://br.wordpress.org/plugins/import-external-attachments/ It saves…
-
3
votes2
answers1101
viewsQ: How to change size, color and add Bold to folders and their names in VS code
Next, I use Vs code for development, even installing different themes, I still can’t find a plugin that changes the size and color of the sidebar folders. Note, that the folders on the left side are…
visual-studio-codeasked BrunoAngeoletto 179 -
3
votes1
answer796
viewsA: Could not activate the plugin because it generated a fatal error
To view the errors in Wordpress, first you need to show them. wp-config.php file will have the options below define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY',…
-
1
votes1
answer21
viewsA: Catch display_name in wordpress
You can use the global variable $current_user->display_name;
wordpressanswered BrunoAngeoletto 179 -
1
votes0
answers31
viewsQ: Skip a Slug by clicking the link
For example, I have the following example url: dev.google.com/Members/usuario/profile/Activity/mentions. echo ( '<li id="' . $user_nav_item->css_id . '-personal-li" ' . $selected . '><a…
-
0
votes1
answer93
viewsA: Stop Automatic Vs Code Parsing
I found the answer in the stack in English Turn off PHP validation: Settings.json // Place your Settings in this file to overwrite default and user Settings. { "php.validate.enable": false } Use…
visual-studio-codeanswered BrunoAngeoletto 179 -
1
votes1
answer93
viewsQ: Stop Automatic Vs Code Parsing
Guys, in my vs code, when I am idle for a while (without being in the tab ) It starts an automatic file posting. Parsing…
visual-studio-codeasked BrunoAngeoletto 179 -
0
votes1
answer149
viewsA: Redirecting pages with . htaccess php
There are several ways to redirect your website access. Meet some of them: Redirecting the account’s main domain: Redirectmatch ^/$ http://dominio.com.br/diretorio Redirects "www.dominio.com.br" to…
-
0
votes1
answer5340
viewsQ: Change input border color
I have an input that takes the user’s Cpf and the validation is done in php. class CPF { protected $field_id; public function __construct( $field_id ) { $this->field_id = $field_id; } /** * Check…
-
0
votes2
answers42
viewsA: Element Superior to Input
Deepening the Answer of Vinicius above (which already assured me the correct answer) I also looked for another way to solve and arrived at the code below. ( function( $ ) { // jQuery MeioMask. if…
-
0
votes2
answers42
viewsQ: Element Superior to Input
Good morning, I’m putting a mask on a field that formats a phone number, but you can see that the field ID is #Field_11690, as it was created by a Wordpress plugin. ( function( $ ) { // jQuery…