Themeing / Tempcode

These FAQs summarise key points regarding Composr themes and how to theme a Composr site.

For more information, check out these tutorials:
Question What is the importance of color schemes in website design?
Answer Color schemes are crucial as they convey emotions and brand identity. Choosing colors that align with your website's purpose can evoke desired feelings in visitors. For example, a website selling chocolates might use shades of brown to subconsciously trigger associations with chocolate. However, an environmental website would be better suited using green, aligning with pre-existing perceptions of environmentalism.

It is also important to maintain consistency with your color scheme, limiting the number of colors used to avoid a conflicting and cluttered appearance.
Question How can design elements like dominance and attention to detail improve a website?
Answer Dominance and attention to detail are key to a balanced and engaging website. Important elements can be emphasized using techniques like larger text, unique colors, and increased spacing. Conversely, less crucial elements should receive less emphasis. This interplay helps guide the visitor's eye and ensures a visually harmonious layout.

Attention to detail involves eliminating inconsistencies and distractions, such as typos, misaligned elements, and low-quality images, that can detract from the overall aesthetics and message of the website.
Question What are some alternatives to Photoshop for web design?
Answer While Photoshop is a popular choice, there are other excellent options available, including:
  • GIMP/GIMPShop: These free, open-source image editors provide a robust set of features comparable to Photoshop.
  • Paint.NET: This free, Windows-only software offers a user-friendly interface and essential image editing tools.
  • Corel Paint Shop Pro: A more affordable alternative to Photoshop, Corel Paint Shop Pro delivers a good balance of features and ease of use.
Question What is Tempcode, and how is it used in website themeing?
Answer Tempcode is a templating language used within Composr. It offers a powerful way to control the output of dynamic content and design elements on a website. It works by using:
  • Parameters: Placeholders for content passed to the template from Composr / PHP.
  • Symbols: Global functions that perform operations, calculations, or retrieve information.
  • Directives: Instructions that control the flow or logic of content, such as conditional statements and loops.
  • Language strings: References to pre-defined text stored in language files for easy translation.
  • Escaping: Ensures the content generated is properly escaped according to its use case.

Tempcode empowers theme designers to create highly customizable and dynamic websites, allowing for logic, conditional rendering, and manipulation of various website elements.
Question How can I create a theme pack for release in Composr?
Answer After designing your theme, go to the admin panel's "Addons" section. You'll find an option to export your current theme as an addon. Composr will package the necessary files into a downloadable archive, ready to be shared with others or submitted to the Composr community for installation on other sites.
Question What is responsive design, and why is it essential for mobile devices?
Answer Responsive design ensures a website adapts seamlessly to different screen sizes, providing an optimal viewing experience across devices, particularly mobile phones and tablets. It utilizes techniques like flexible grids, fluid images, and CSS media queries to adjust layout and content based on screen dimensions.

This is crucial because mobile device usage is significant, and a non-responsive site leads to a poor user experience on smaller screens, potentially driving visitors away.
Question How do I make my website theme mobile-friendly in Composr?
Answer Composr offers several features to optimize themes for mobile:
  • Mobile mode: You can design separate layouts and CSS styles specifically for mobile devices, which Composr automatically activates when a mobile user visits your site.
  • Tempcode's 0 symbol: This symbol helps conditionally display content based on whether the user is on a mobile device or desktop.
  • CSS media queries: By using media queries, you can target specific screen sizes and adjust styles accordingly, making your theme responsive.
  • Viewport meta tag: This tag controls how the browser scales and displays the webpage on mobile devices, ensuring a properly sized and zoomable experience.
Question What considerations are necessary when designing for different user levels on a website?
Answer User levels often necessitate different content or functionalities. For instance, administrators might need access to content creation tools, while regular visitors only view published content. Consider these factors during design:
  • Visibility: Some elements might need to be hidden or displayed based on user roles (e.g., admin-only links).
  • Permissions: Design elements and interactive features should reflect the permissions granted to different user levels.
  • Customization: Consider allowing users to customize their experience based on their preferences and roles.

Remember, a well-designed website should cater to all user levels while maintaining security and a cohesive experience.
Question How can I make my website design more appealing to different thinking styles?
Answer Different individuals process information differently. Some are more visual, while others are more analytical. To appeal to diverse thinking styles, a website design should incorporate a balance of elements. For instance, using a striking header image coupled with well-structured, informative text can cater to both visual and analytical thinkers. Understanding your target audience and their thinking styles is key to creating a design that resonates with them.