themes

Need to change the Colour of each menu heading. - Wordpress

こ雲淡風輕ζ 提交于 2019-12-13 21:40:09
问题 I have a website: http://cancersurvivorshipireland.com/cancersurvivorshipireland.com/wordpress/ (temp address) but I have all the menu topics in the header the same colour, they are all green. I am trying to get them all different colours. eg. Home = green, News = red, Blog = yellow. but have absolutely no idea how to do it? 回答1: You can do this with CSS nth child selector as follows: #menu-default li:nth-child(1) a { color: green; } #menu-default li:nth-child(2) a { color: red; } #menu

Android chrome : Background with “background-size: cover;”

允我心安 提交于 2019-12-13 20:21:49
问题 I put a background on my homepage. It is correctly displayed on all browsers except on android chrome. Here is my css : body.path-frontpage { background-image: url("/themes/contrib/bootstrap_subtheme_front_office/images/background.svg"); background-attachment: fixed; background-size: cover; -webkit-background-size: cover; -moz-background-size: cover; background-position: center; background-repeat: no-repeat; } Here is my homepage : https://www.s1biose.com/ 回答1: I ran into the same problem not

Drupal 7: naming node with Theme Developer

血红的双手。 提交于 2019-12-13 19:46:07
问题 I'm working on a Drupal 7 website. I need a custom node for a page, and I used Theme Developer module to find the candidate name for the node which I attached screenshot below. But it doesn't take action when I name as node__28.tpl.php What am I missing?! Thanks a lot! appreciate helps! 回答1: It should work with node--##.tpl.php . And don't forget to clear cache. 来源: https://stackoverflow.com/questions/5178751/drupal-7-naming-node-with-theme-developer

Different formats for different Textview defined by Custom style

。_饼干妹妹 提交于 2019-12-13 18:13:30
问题 I have a problem figuring out how to do this: I am currently coding an app that comes with different themes (User can select the complete appereance of the app out of a list of different styles). Then the list item is selected I want to call setTheme(R.style.Own_App_Style0); to change the complete appearance. The problem is best explained by an example: Lets say we have 2 TextView. Theme1 1. TextView: TextColor should be green and TextSize 15sp. 2. TextView: TextColor should be red and

Android apply a theme on a custom item

混江龙づ霸主 提交于 2019-12-13 14:29:32
问题 i am able to declare a theme and a specific button design: <style name="MyTheme" parent="android:style/Theme.Black"> <item name="android:buttonStyle">@style/Button.b1</item> </style> <style name="Button.b1" parent="android:style/Widget.Button"> <item name="android:textColor">#000000</item> </style> The problem is that this style is applied to all buttons. I would like to declare a specific button with his own style changing each theme independent of the other buttons (something like a "save"

How to move my Magento mini search form to another spot in my template header?

安稳与你 提交于 2019-12-13 14:13:30
问题 I am building my first custom Magento theme. It's slow going, but it is going. I got rid of the bar that originally held the mini search form on the home page and instead want to put the search form in my new header. Here is the code for my header in header.phtml : <div id="header"> <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a> <div id="header-top"> <

Want to change (pick) Primary Color dynamically in Material UI theme

我与影子孤独终老i 提交于 2019-12-13 13:40:59
问题 There is requirement, I want to give access to user can select their primary color from list like Blue, Orange Green. I have used latest Material UI for front-end. Now I am able to change light to dark theme but my requirement is change primary color also. please help me for same how to code for same. Please check attached screen: 回答1: import React from 'react'; import { render } from 'react-dom'; import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; import Root from '.

Separating UIAppearence code

爱⌒轻易说出口 提交于 2019-12-13 06:21:36
问题 I want to implement add themes to an app I'm creating. Simply just switching between 2 colors and I want the navigation bars, tool bars etc. to appear in the selected color. When the app first loads, I apply one color to in the didFinishLaunchingWithOptions method in the AppDelegate. UIColor *blueTheme = [UIColor colorWithRed:80/255.0f green:192/255.0f blue:224/255.0f alpha:1.0f]; UIColor *pinkTheme = [UIColor colorWithRed:225/255.0f green:87/255.0f blue:150/255.0f alpha:1.0f]; [

How to save multiple repeatable fields as array in database?

别说谁变了你拦得住时间么 提交于 2019-12-13 05:58:21
问题 On the theme im working i'm trying to make slideshow. I have everything set so far i just don't understand how to save them in database when there are multiple slides. I will skip the code as it's very large ill just add example of input values. Each slide is made of image upload field(which is basically text field that holds link to image) and textarea field for the text in slide. So values of the slide are like this. Slide 1 -> $slide[image][0] -- $slide[text][0] Slide 2 -> $slide[image][1]