Posts by Aldo Fernandes Junior • 486 points
20 posts
-
3
votes1
answer147
viewsQ: Organize capabilities and levels of wordpress users (no plugin)
First I’ll explain the scenario, I want to make a system where there will be four different types of people accessing it. The Administrator, "moderators", authors, and partners. I wanted to use the…
-
0
votes1
answer589
viewsQ: Alphabetical sorting in Array with objects in PHP array
I have the following array in php: Array( [0] => Array([id] => 1 [nome] => b parceiro um [status] => true [descricao] => <p>Descrição do parceiro</p>) [1] => Array([id]…
-
0
votes1
answer1467
viewsQ: Always return to the top of the screen by clicking on links of a SPA with Angular.Js
I have an angular design, of which with the $routeProvider define my views and call the appropriate controllers, and use the <ng-view></ng-view> to present them on my website. They are…
angularjsasked Aldo Fernandes Junior 486 -
1
votes1
answer586
viewsQ: Merge two objects into one with conditional attributes in Javascript
I have the following dilemma, I need to assemble an object to send to a API rest. But I have data that starts from a variable. I thought of several ways to do this but I don’t know which one is…
-
0
votes1
answer591
viewsQ: Page attribute, template, in a wordpress "project"
I have a site in Wordpress, of which some pages I use instead of the wordpress editor, file .php with a Template Name, in such a way I point out in wordpress the template, located in the page…
-
12
votes5
answers1033
viewsA: What is the definition of each css selector combination
When you put a . at the front, it means that you are selecting a class from an element <div class="minhaClasse"> in css I would select it with .minhaClasse {}. When you put a # in front, means…
cssanswered Aldo Fernandes Junior 486 -
2
votes1
answer111
viewsA: cover the background with the Y axis
Well from what I understand, you’re willing to use the contain? The cover will always follow the two axes, so the height and width of the background image, are greater or equal to that of the…
-
2
votes1
answer814
viewsA: Collapse bootstrap is not closing
Its architecture is half wrong and missing some parameters, follow the own examples that are found on the bootstrap site: <script…
-
0
votes1
answer108
viewsA: How to modify :Hidden elements with jquery?
Unfortunately there is no way to know this height, but for you to center, da para usar apenas css, com o display:flex; align-items:center; follows the code with the centralized texts: #bg-img-1{…
-
2
votes1
answer2175
viewsA: Aligning buttons on the NAVBAR
There are several possible ways to do this, some more performative than others. Does your navbar have any fixed height? And the buttons? If they do, you could add a margin-top with half the…
-
2
votes3
answers582
viewsA: Problems with image on the site
@Dit Take a look at its structure, or the path of its image. Note also that from a look at the semantics of HTML5 and CSS3, the tag center for example is deprecated. Use anything style in a css file…
-
3
votes3
answers271
viewsA: How can I make "..." appear in a certain class after reaching a limit of carcter
Well I put together a quick way here, a script with jquery that cuts only in the next space, because it is very common to see these text cuts end up harming for example the phrase "I like cupcake"…
-
3
votes1
answer981
viewsA: Div with height automatico dropdown menu
Well I mounted a test drop here that I think does what you wanted, I in case I put a height max-height fixed, but you can control your elements and your hierarchy to leave it 100% and it gets…
-
1
votes1
answer393
viewsA: problems with Tooltip in jQuery and css
I did some tests simulating the older internet explorer, and I really saw the problem, I made some changes to its code and this way did not occur this bug. I stopped manipulating the DOM element…
-
3
votes0
answers125
viewsQ: Problems with Grunt tasks for versioning when html files are inside other folders
Using Grunt, I installed and configured the plugins: - grunt-contrib-copy - grunt-contrib-clean - grunt-contrib-concat - grunt-contrib-uglify - grunt-contrib-cssmin - grunt-usemin -…
-
0
votes1
answer38
viewsA: Switching from partial to script without reloading the Angular application
I was able to find the answer :) instead of using javascript code window.location.href = "pagina/usuarioId"; Now use: $location.path("pagina/" + usuarioId); and he changes only the view :)…
-
0
votes1
answer38
viewsQ: Switching from partial to script without reloading the Angular application
Hello, I was doing some tests. And in case I want to make a conditional for a single send button to a Partial passing a parameter, or not. And I made a button calling this function: Controller…
-
1
votes2
answers405
viewsA: Angular $routeProvider using <div ng-view></div>
You are not calling the "ngRoute" in your main.js var app = angular.module("myApp", ['ngRoute']); and in your controller you are creating "myapp" again, it would have to be like this: var app =…
-
0
votes2
answers1320
viewsQ: How to load scripts within a partial in Angular.js SPA
Hello, I’m starting in Angular Js, and I’m doing a project in Single Page Application, in my index, I load some scripts and my ng-view, but in one of my partials, I need to load a script in it, it…
-
0
votes1
answer210
viewsQ: Wordpress post preview without the link "read more"
Hello, I am a beginner in the Wordpress platform, and I find myself in a situation where I do not want the link "Continue reading" in the previews of my posts. To add the posts previews to the home,…