Justify text from post into Visual Composer grid - wordpress

What I have
A 2 item grid created with WPBakery Visual Composer Version 4.11.2.1. Inside every item of the grid there is there is a post from my news section.
What i need to do
I need to justify the text inside grid's item

You need to create 'Grid element template'.
Here is the step to create template:
Go to Visual Composer > Grid Elements menu
Add 'Grid Element' title (e.g 'My custom template')
Click on 'Templates' icon (pop up window 'grid templates' will be opened)
Select 'Basic Grid: Default' from grid templates
New column will be appended at bottom of template
Click on edit button of 'Post Excerpt' (pop up window 'Post Excerpt Settings will be opened')
Select 'Div' option from 'Element tag' drop down
Select 'Justify' option from 'Text align' drop down
Click on 'Save changes'
Click on 'Publish' to publish grid element
Now you need to select 'Grid Element Template' from 'Post Grid Settings' :
Go to 'Grid Settings' (Click on edit button of grid element)
Go to 'Item Design' tab.
Select Template Name option from 'Grid element template' drop down (Template name is the template that is created in above steps. E.g 'My custom template')
Click on 'Save Changes'
If you need more explanation for the steps, please leave a comment.

Just Press alt+shift+j in every text block!

Related

Add button for a modal box in my navigation

I have the following navigation in my site.
The first 3 items are normal links to other pages in my site. The last orange link opens a modal box.
This is how I have written it in code
<?php wp_nav_menu(['menu' => 'Main menu', "container" => "", "menu_class" => "desktop-menu"]); ?>
<a class="open-modal-registration passion-one bg-orange white" href="#">Einfach anmelden und kostenlos studieren</a>
I have a menu that can be customized from the Control panel, and then the orange button is hardcoded.
Now comes my problem. I would like to be able to reorder the items in the navigation in a way that I can also reorder the orange button, and put it, lets say, between "Page #1" and "Page #2".
To do this, I guess I would have to add it to my menu from the Control Panel, but I do not see any proper way to do this. All that can be added to the menu are
Custom links
Pages
Posts
Categories
Tags
And none of those elements seem the right one to define a button with such a functionality.
How could I solve this?
Based on what you are looking for and the way a WordPress menu is loaded, I would say your best bet is to add it to the menu like the other items. You can enter in all of the same data, the dead-link, style it and then use the menu item id assigned to every wordpress menu item dynamically as the selector that opens your modal. There is no need for the class you are currently using to open it since only one element will be opening the modal based on your question.
For example:
jQuery(document).ready(function(){
jQuery('#menu-item-7155').click(function() {
//add the selector/js to open your modal
jQuery('#modal').show();
});
});
Hope that helps! Good luck.

How to disable Wordpress top menu link?

How to disable top menu link in Wordpress to avoid redirect to another page on click. I only need to show submenus.
Give the menu item link a the value #.
Then you'll need some Javascript to prevent default link clicking action.
E.g. with jQuery:
$('.class').click(function(e){
e.preventDefault();
});
// replace class with whatever the selector of the link is. To cover ALL menu items that have sub menus (and have the WP classes), you can use '.menu-item-has-children a'
Add custom link to menu item (Put # value on link)
Log into your WordPress administration panel. Navigate to Appearance, and select Menus:
Navigate to Links on the left and type in the URL you want to have for this menu button, add Link Text to specify what the tab will say, and then click Add to Menu:
Optionally, if you would like to control whether your menu link opens in a new tab when clicked, check the “Link Target” advanced property from within Screen Options to reveal this setting on individual menu items:
Refresh the site and you will see your new custom page and link in the navigation menu.

How to access QTabWidget tab editor in Qt Designer - when I double click object name dialog pops up

I have a QTabWidget and I want to add/remove/rename individual tabs. Some sources claim that you can double click it to get a tab editor. When I double click it, I get the "Object name" popup:
I need a similar editor like the one used for comboboxes:
I also tried to edit tab properties by right-clicking it in object tree. The menu is pretty stripped of any useful options:
How to manage tabs? Is it possible without XML editor? If yes how do I
... delete tabs?
... add tabs?
... rename tabs?
... change tab layout?
Just to make it more clear...
Add tab to QTabWidget:
From QTabWidget context menu → InsertPage:
Rename tab in QTabWidget
Select the tab to rename by clicking on it. Then edit QTabWidget property currentTabText in the property editor:
Delete tab in QTabWidget
Select the tab you want to delete. From QTabWidget context menu → Page X of Y → delete:
You should just work with each tab as with a normal widget on screen, without double click. To switch between tabs just click on them, for stacked widget there are two small arrows in the top right corner to switch between pages.
To delete tabs right-click then use 'Insert page', or choose page sub-menu where you can delete or rename page.
You can just drag tabs using header to change the order.
Above 'Insert page' there is a menu item 'Page N of M' (which is currently selected page), in there you will find an item - 'Remove page'

Rearrange child subtab in Netsuite

I have a requirement to have two custom record types under parent subtab arrange in order. I used parent-child relationship but the arrangement of the child subtab is something I couldnt customize. 'test one' and 'test two' are my custom record types, and Parent is item fulfillment record.
I want 'test one' to come first and then 'test two'.
I tried adding a new Subtab via customization under translation and this order customization is not available in netsuite. Am i missing anything?
Please help.
Edit the record
Click "customize" then "customize form" in the top right of the form
Navigate to "Lists" then select "Communication"
You can drag and drop your prefered order from this screen
Name then save the custom entry form
You can then manually select this form for the record or set it as the default form
If a field is visible on the form, then it appears somewhere in the Custom Entry Form screen. Which tab it's on depends on the type of field. It could be under Lists, or Fields, or elsewhere. Look for it.
When you find it, use the Field Group dropdown to move the field between the main view and sub tabs, and drag/drop the field to change its top-down display order. The drag handle looks like ⋮⋮.

Drupal search only titles

Is there a way for the Drupal search to only search article Titles and Tags.. not the content of the article? Possibly with the Views Module?
I am using Drupal 7. I do have Views installed and Views Search does not work on Drupal 7.
Create a View to search using Title of the Content (page,story,blog,article,book)
Step 1 : Click on Administer
Step 2 : Click on views
Step 3 : Click on Add
Step 4 : Fill in details for 'View name:' , 'View type: ' select 'Node' and hit 'Next' button.
Step 5 : Select 'Page' from dropdown on first column and click on 'Add display' button.
Step 6 : Under 'Basic settings' you can Select Name click 'page' and see below change the name from 'page' to say 'Search_Content' and push the 'update' button.
Step 7 : Under 'Page settings' you can Select Path click 'None' and see below change the name from 'Path' to say 'search_content' and push the 'update' button.
Step 8 : Under 'Page settings' you can Select Menu click 'No menu' and see below select 'Normal menu entry' give 'Title:' for text-field say 'Search' and select a Menu Link: 'Primary links' and push the 'update' button.
Step 9 : Now click the '+' link near 'Fields' column.
Step 10 : Now select 'Node' under 'Groups:' and select 'Node : Title' and click 'Add' button.
Step 11 : You can remove the text from 'Label:' Text-field and make the Text-field blank.
Step 12 : Click the 'Save' button below. Note all these changes are 'temporary' till when you dont press the 'Save' button below.
Step 13 : You will see a new menu link would be created click on it and check the list of
Step 14 : Edit the Search_Content
Step 15 : Now click the '+' link near 'Filters' column.
Step 16: Now select 'Node' under 'Groups:' and select 'Node: Title' and click 'Add' button.
Step 17: Now You will see 'Expose' button and push the 'update' button.
Step 18: Click the 'Save' button below. Note all these changes are 'temprory' till when you dont press the 'Save' button below.
Step 19: Click on same button with menu links the list of Content titles will be listed with Search bar.
That should be a good start.....ref
There's no way using the views UI to search for both using the same textfield. You have to code for that.
The best result you can take with just the UI consists of exposing two different filters, one for the title and one for the tag. I suggest an autocomplete filter for both, this will give the user good flexibility.
Edit:
With the UI: you have to edit the view, add a new filter, choose "title" and then expose it. Then you have to repeat the same for tags.
With the code you have to look at the documentation as it's not trivial to write it here in a few lines of code and it's strictly related to what you're likely gonna do.

Resources