Change layout of [products] shortcode

I would like to display additional products on my simple product pages.I am using the shortcode like so in the simple products short description.

[products ids="2113"] 

The problem with this is the layout of the resulting loop. Is there a way to customise the layout to just supply the Name – Price – “Add to Cart” Button in a single line. Almost like its a variation option. Currently, I don’t think this is possible with just CSS.

Thanks

Is There a way to add an Arrow to Google CSE Refinements via the Mobile Search Layout?

EDIT: This has to do with Google CSE on my WordPress site. If this is not the correct forum, I apologize.

I was just wondering if there was a way to add an arrow or something indicating that mobile users can swipe through the refinement labels via Google CSE? I am not sure how most people know to swipe through them so it could be overlooked.

Thanks and regards,

Josh

Create Scoreboard using LibGDX table layout

I am trying to create a card game, which will contain following features.

  • It will be a 6 player game.
  • Each player contain set of cards, where each card contain some specific value
  • After every round a “Scoreboard” will be shown, that contains score of each round and total score.

I want to create a Scoreboard like below image.

enter image description here

I am trying to create it using LibGDX table layout, but the Table Wiki doesn’t help at all for this kind of layout and I can’t find any tutorials or examples on the web that would help.

Following are my code to create scoreboard, currently i am able to reach this far only.

Score Board Class

public class ScoreBoard { private Stage stage; private Assests assests; Skin skin; Container<Table> tableContainer; private AbstractGameController gameController; private ArrayList<Player> players = null;  public ScoreBoard(Stage stage, Assests assests, AbstractGameController gameController) {     this.stage = stage;     this.assests = assests;     skin = assests.manager.get(Assests.glassySkin);     tableContainer = new Container<Table>();     this.gameController = gameController; }   float sw = Gdx.graphics.getWidth(); float sh = Gdx.graphics.getHeight();  float cw = sw * 0.7f; float ch = sh * 0.5f;  public void displayScoreCard() {     if (players == null)         players = gameController.getPlayers();     tableContainer.setSize(cw, ch);     tableContainer.setPosition((sw - cw) / 2.0f, (float) sh - ch);     tableContainer.fillX();      Table table = new Table(skin);     table.setDebug(true);     Label topLabel = new Label("Score Board", skin);     topLabel.setAlignment(Align.center);     table.row().colspan(players.size()).expandX().fillX();     table.add(topLabel).fillX();     table.row();     for (int i = 0; i < players.size(); i++) {         table.add(new Label(players.get(i).getName(), skin)).uniform();     }     table.row();     for (int i = 0; i < 6; i++) {         for (int j = 0; j < players.size(); j++) {             if(players.get(j).getPreviousRoundScoreByIndex(i)>=0)             table.add(new Label(players.get(j).getPreviousRoundScores().get(i).toString(), skin));         }         table.row();     }        tableContainer.setActor(table);     stage.addActor(tableContainer); } } 

Game Play Screen

 public GamePlayScreen(Assests assests) {     this.assests = assests;     camera = new OrthographicCamera();     width = Gdx.graphics.getWidth();     height = Gdx.graphics.getHeight();     camera.setToOrtho(false, width, height);     camera.update();     batch = new SpriteBatch();     FillViewport viewport = new FillViewport(width, height, camera);     viewport.update(width, height, true);     Gdx.input.setCatchKey(Input.Keys.BACK, true);     stage = new Stage(viewport);     stage2 = new Stage(viewport);     stage3 = new Stage(viewport);     gameDrawer = new GameDrawer(batch, assests);     gameController = new GameController(camera, assests);     scoreBoard = new ScoreBoard(stage3, this.assests, gameController);     gameController.setScoreBoard(scoreBoard);   }  public void show() {     //    Gdx.app.log(TAG, "Enters show method");     Image backgroundImage = new Image(assests.manager.get(Assests.backgroundImageTexture));     backgroundImage.setSize(width, height);     stage.addActor(backgroundImage);     InputMultiplexer multiplexer = new InputMultiplexer();     multiplexer.addProcessor(stage);     multiplexer.addProcessor(stage2);     multiplexer.addProcessor(stage3);     multiplexer.addProcessor(new GestureDetector(new TouchController(gameController)));     Gdx.input.setInputProcessor(multiplexer);     batch.setProjectionMatrix(camera.combined);       //   Gdx.app.log(TAG, "Executed show method succussfully"); }  public void render(float delta) {     //Gdx.app.log(TAG, "Enters render method");     Gdx.gl.glClearColor(0.187f, 0.246f, 0.621f, 1.0f);     Gdx.gl.glClear(16384);     if (Gdx.input.isKeyPressed(Input.Keys.BACK))         onBackPressed();     stage.act();     stage.draw();      batch.begin();     gameController.processGameRender();      gameDrawer.drawDealtDeck(gameController.getDealtDeck());     gameDrawer.drawDiscardedDeck(gameController.getDiscardedDeck());      gameDrawer.drawPlayerDeck(gameController);     scoreBoard.displayScoreCard();      batch.end();     stage2.act();     stage2.draw();     stage3.act();     stage3.draw();      //   Gdx.app.log(TAG, "render metod executed succussfully"); } 

In my layout 2 columns on small devices

Hello,
Could you please look at design of
http://vtasks.my-demo-apps.tk/
site

In my vue/cli 4 / Bootstrap 4.3 app I make listing of tasks in 1 column on small devices(ipad-s)
and 2 columns on big devices, like :

<div class="row " v-show="tasks.length && is_page_loaded"> <div v-for="(nextActiveTask, index) in tasks" :key="nextActiveTask.id" class="col-sm-12 col-md-6 p-2 m-0"> <task-list-item :currentLoggedUser="currentLoggedUser" :nextActiveTask="nextActiveTask" :index="index"...
HTML:

In my layout 2 columns on small devices

How to code an algorithm to generate a random but valid train track layout?

I am wondering if I have quantity C of curved tracks and quantity S of straight tracks, how I could write a computer program to design a “random” layout using all of those tracks, such that the following rules are satisfied:

1) The tracks, when all connected, form a closed (continuous) loop for the train to go around.

2) Ramps, bending of tracks, bumping of tracks, crossing of tracks are all not allowed.

So would the computer program have to create a geometric model and remember the exact positions of each track or is there some simpler way to code this? I want to be able to “push a button” and the computer “spits out” a valid “new” layout for me.

Do I need to give the exact measurements of the 2 types of tracks? If so, I can provide those.

I have some coding skills but I need to know an algorithm first before I can code something meaningful (other than just testing a few parts of a candidate algorithm)

Need help for finding a user-friendly item queue component layout and presentation

I’m looking for alternate layout/UX ideas for presenting an item queue component.

The data and behavior I’m to present is a linear queue, a stack of items — digits, letters, small images. A collection of small things.

The queue can hold typically between 3 and 6 items at a time.

If an item is added to the queue when it has already reached its maximum capacity, the item which was added first should be pushed out (deleted) and the new item added to the end of the queue.

So if I have this arrangement at first for a queue of 4:

ABCD 

…and I want to push an “E”, then this is what I should get:

BCDE 

So far this is fine and straightforward, but I wonder if there’s any other way to visually arrange the items: instead of the linear layout could I use a grid perhaps? For example if I have a queue of 6, can I show it like this?

AB CD EF 

…and if I push a “G”, then of course this is what I should see:

BC DE FG 

But I’m not sure just how user-friendly this is.

I can use visual animation to indicate where each item was relocated, and I can perhaps fade out or shrink the item that gets discarded, but I’m concerned that this might be just too busy, too many things would change at once.

Does anybody have any recommendations for me?

Add an element to an interface without increasing the complexity of the layout

I need to implement a text and a switch to a login interface. This is what I made:

enter image description here

The problem is that I think it is a bit inappropriate, considering the layout and colors chosen in the interface. How would you improve it? Can it be a solution to close it inside a rectangular shape and move it to the center of screen?

3 column layout for a song site. Sidebar on left/right, and content between them

So I’m working on a website, an anime one to be precise, where people can read about anime songs, their singers, rate them/post comments to them, add them to their list etc., and this is the current layout of the site of a song.

I think it’s decent, and I’m planning to keep it this way, but I’d like to know what others, maybe some experts think about this layout.

So as you can see, on desktop view there is a sidebar menu on the left(which can’t be closed), and there is another one on the right, which contains some info about the song, such as the embedded youtube video, some statistics, info about the singer(if exists),anime, and the lyrics at the bottom. Both sidebars and the div between them are separately scrollable, but the scrollbars are hidden, because IMO it would ruin the design/layout.

And between them the content div is placed, which contains further information about the song(statistics, song recommendations, comment section etc).

Their width goes like this: 20-65-15

Desktop view

Desktop view

On mobile view, the sidebar on the right is being pushed to the top of the content div, since it perfectly fits in the screen size of a phone, and of course the menu(but without the search section) can be opened with the usual hamburger menu icon, but unlike most sites, it’s placed on the bottom.

Mobile view

Mobile view

This layout is also convenient when the user wishes to read all the comments. On that site, the layout is still the same, so the sidebar on the right is still visible. But this time it’s only visible on desktop view, so this is one privilege of those who visit the site on a PC.

Site of all comments

Do you think a layout like this would be convinent for the users? Or isn’t it too unusual to have sidebars on both sides?